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


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk