c++ - Can I do an assignment operation between two istream_iterators? -


can assignment operation between 2 istream_iterators? if behaviour, i.e. both iterators point same location in file, i.e. 2 pointers same line in file?

if so, can increment 1 iterator, read lines, , assign other iterator , again start reading lines same location earlier?

basically want write program simulates loop. should happen while parsing file.

istream_iterators input iterators, not forward iterators. means single-pass iterators, opposed multi-pass iterators: there no way go in sequence, or iterate sequence more once.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -