|
Boost : |
Subject: Re: [boost] AlRangeExandrescu?
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-07-26 05:34:52
Thorsten Ottosen skrev:
> Andrei Alexandrescu skrev:
>> Thorsten Ottosen wrote:
>
>>> A "not" slipped here.
>>>
>>>> Yes, until is lazy. I think it couldn't be implemented any other way
>>>> for input ranges.
>>>
>>> Ok, but the problem with lazy ranges is that when you compose it with
>>> range adaptors, then it greatly limits the adaptors that you can
>>> subsequently apply.
>>
>> Why is that the case?
>
> because some adapters require random aceesss ranges e.g.
>
> rng | stride_view
>
Hm. I don't think stride_view requires rar afterall. Anyway, I think it
preserves random access which is nice.
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk