
13 May
2009
13 May
'09
9:41 p.m.
AMDG Mathias Gaunard wrote:
Beman Dawes wrote:
Attached is proof-of-concept code for a sentinel iterator adapter.
This is not a true iterator adapter, since it can only adapt an iterator of pointer type, not just any iterator.
Would a production version of this iterator adapter be a worthwhile addition to Boost.Iterators?
I suggest turning it into a true iterator adapter that would apply a predicate on each element to tell whether it is the end.
How do you plan to represent the end without adding extra overhead for comparisons? In Christ, Steven Watanabe