6 Apr
2009
6 Apr
'09
1:46 a.m.
Dmitry Vinogradov wrote:
Is it possible with Boost (or RangeEx) to concatenate ranges?
Sample usage:
template <class Range> void process_range(Range const &);
std::vector<foo> v = ...; std::list<foo> l = ...; process_range(concat(v, l));
I take it you have a good reason not to simply copy v and l into a new container. iterator_facade might help, and iterator_range to obtain a range.