
17 Apr
2007
17 Apr
'07
8:46 a.m.
Graham Reitz wrote:
I thought that for_each() goes while (it != end). How does for_each() 'know' what end is here? It doesn't seem to be initialized to anything.
The default constructed iterator is used to mean "end of sequence", wherever that may be. John.