Boost logo

Boost :

From: Terje Slettebø (tslettebo_at_[hidden])
Date: 2002-08-12 04:26:04

>From: "Terje Slettebø" <tslettebo_at_[hidden]>
> In addition, you have the mentioned advantages that David B. Held and
> have pointed out, that with the iterator abstraction, anything providing
> iterators may be used for the algorithms, that includes things like
> generators, too. range_c works like that.

By the way, I think range_c could be refactored into a "generate"
metafunction, taking a nullary metafunction, though, like STL's "generate".

You could then use this to generate any kind of sequence, not just a sorted
sequence of integral_c elements.



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