Boost logo

Boost Users :

Subject: Re: [Boost-users] [iterators][range][rangeex] range concatenation
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-04-07 14:28:53

Neil Groves skrev:
> On Tue, Apr 7, 2009 at 7:49 AM, Thorsten Ottosen
> <thorsten.ottosen_at_[hidden] <mailto:thorsten.ottosen_at_[hidden]>> wrote:
> I wonder if we could call this beast
> join_view(r1,r2)
> or something. Perhaps support for 3 and 4 ranges would be nice.
> How about r1 | join(r2) | join(r3) ?
> I was thinking that this looks very much like a job for a range adaptor.
> The support for multiple ranges is almost inherent because you can chain
> the iterator such that the second iterator type is a join_iterator.

I suspect that r1 | join(r2) | join(r3) will be less efficient than
join(r1,r2,r3), because the former will lead to double checks
of which range that is being iterated, unless there is some clever way
to avoid that. But the | joined(r1,r2) syntax or whatever is fine with me.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at