Boost logo

Boost :

Subject: Re: [boost] [iterators] Proof-of-concept for a sentinel iterator adapter
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-05-13 17:30:54

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.

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