Range-based loop over an input stream

前端 未结 4 1278
生来不讨喜
生来不讨喜 2021-02-08 17:06

To iterate over an input stream, we would usually use a std::istream_iterator like so:

typedef std::istream_iterator input_iterato         


        
4条回答
  •  伪装坚强ぢ
    2021-02-08 17:44

    It doesn't matter whether they will be found by argument-dependent lookup, because you are allowed to put specializations of classes and functions in the std namespace.

提交回复
热议问题