Boost logo

Boost Users :

Subject: Re: [Boost-users] [iterators][range][rangeex] range concatenation
From: er (erwann.rogard_at_[hidden])
Date: 2009-04-05 21:46:21


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.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net