J
Jerry Coffin
junk@[127.0.0.1] says... said:So you don't even need the vector part. How about just something that
acts like an iterator over an (infinite) sequence of identical values:
This would work for some situations, but quite a few algorithms expect
to see two iterators, one for the beginning of the sequence and the
other for its end. They expect the beginning iterator to become equal to
the end iterator after some finite number of increments, and unless you
provide iterators that act that way, the code will cause problems (e.g.
infinite loops).