
Neil Groves skrev:
On Tue, Apr 7, 2009 at 7:49 AM, Thorsten Ottosen
mailto:thorsten.ottosen@dezide.com> 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. -Thorsten