
13 Jul
2012
13 Jul
'12
4:42 p.m.
I'm a little surprised to see a function that returns a range named "directory_iterator".
Other Boost libraries, such as Boost.Iterator and Boost.Range, distinguish between the concepts of an iterator, which denotes a single position in a range, and a range, which is defined by iterators at is beginning and its end.
directory_iterator is like std::istream_iterator in that a directory_iterator object identifies the end of a range simply by being equal to directory_iterator().
Existing practice in Boost seems to be to make a corresponding _range function for such iterators, not to treat the iterator itself as a range: http://www.boost.org/doc/libs/1_50_0/libs/range/doc/html/range/reference/ran... Regards, Nate