Boost logo

Boost :

From: Ford, Rich (Rich.Ford_at_[hidden])
Date: 2007-04-07 23:01:58


Thanks. I hadn't thought of that, but of course one could find the begin
of the filtered sequence by constructing it from the begin of the base
sequence. Then an algorithm doing decrementing could check to see if
begin had been reached and avoid decrementing beyond that.

-----Original Message-----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of David Abrahams
Sent: Saturday, April 07, 2007 12:49 AM
To: boost_at_[hidden]
Subject: Re: [boost] [filter_iterator] Problem with --iter when applied
to first satisfying location

on Fri Apr 06 2007, "Ford, Rich" <Rich.Ford-AT-amd.com> wrote:

> There is a problem with the filter_iterator decrement operation if the
> iterator is currently referencing the first object that satisfies the
> predicate.

That's the beginning of the sequence traversed by the iterator, so you
can't decrement it legally, just like any other "begin" iterator.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
Don't Miss BoostCon 2007! ==> http://www.boostcon.com
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost

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