Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2007-04-17 04:46:45


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net