Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-05-06 19:48:51

Sylvain Pion <Sylvain.Pion_at_[hidden]> writes:

> Hi,
> I was wondering why the filter_iterator could not be made
> bidirectional when the base iterator is as well.

It could, for a (rather high) price.

> Is it because it would have to store the "begin" iterator ?
> Actually I am wondering whether it should have to store the begin iterator
> even in this case.

Yes, it would.

> Would it be possible to make filter_iterator support operator-- ?

Yes it would. It seems like a fun project for someone so inclined ;-)
Do you need this functionality for something, or are you just curious?

Dave Abrahams
Boost Consulting

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