Boost logo

Boost :

From: Anthony Williams (anthwil_at_[hidden])
Date: 2002-09-09 07:44:57

 David Abrahams writes:
> From: "Anthony Williams" <anthwil_at_[hidden]>
> > Is it possible to use boost iterator adaptors to generate a bounded
> sequence?
> Yes.
> > In my actual usage, the generator does more than increase a state; the
> point
> > is I want to stop when I reach a defined condition (which can be encoded
> as
> > another instance of the generator if required)
> Do you have another question about this?
> Did you read the docs for iterator_adaptor?


OK, my real question is: is there a pre-defined iterator adaptor for doing
this, as the generator adaptor doesn't allow for a stop condition?

If there is, I'll use it. If there isn't (and it didn't appear to me that
there was), then I'll have to write my own Policies. Not a biggy, but I don't
want to duplicate effort if I don't have to.


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