Boost logo

Boost :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2005-08-22 06:28:33

Pavol Droba wrote:

> Hi,
> I have a proposal for addition to Boost.Range library:
> template<typename RangeT, typename OtherRangeT>
> RangeT construct<RangeT>(const OtherRangeT& Source);
> template<typename RangeT, typename IteratorT>
> RangeT construct<RangeT>(IteratorT From, IteratorT To);
> Both functions should construct a range of type RangeT, that will
> contain elements from Source or [From,To) respectively.
> Motivation:
> In the standard library Sequence concept defines a way for constructing a
> sequence from and arbitrary range of iterators. This is very useful
> concept and it would be nice to have something similar available
> in the Range library.

Yes, I already proposed this and use if frequently.

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