
22 Aug
2005
22 Aug
'05
11:28 a.m.
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.