Boost logo

Boost Users :

Subject: Re: [Boost-users] [iterators][range][rangeex] range concatenation
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-08 09:51:54


AMDG

Thorsten Ottosen wrote:
>>>> Thorsten Ottosen wrote:
>>>>> 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.
>
> The hard part is the implementation of increment()/decrement().

Right, but what I was trying to say was that
join(r1, r2, r3) is not significantly different
from r1 | join(r2) | join(r3). If we can implement
one efficiently, we can implement the other efficiently.

In Christ,
Steven Watanabe


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