Boost logo

Boost :

Subject: Re: [boost] [iterators] Proof-of-concept for a sentinel iterator adapter
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-05-13 17:41:11


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

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at