Boost logo

Boost :

Subject: Re: [boost] AlRangeExandrescu?
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-07-25 03:34:48

Andrei Alexandrescu skrev:

>>> Surprisingly, until() also works on input ranges! It works because it
>>> finds the element lazily - it returns a range that tests for
>>> termination condition in its .empty() test. So until() returns a
>>> range that iterates the original passed-in range until the sought
>>> element is found, at which time until() reports termination.

Is until lazy for all types of ranges? Being lazy is often good, but
it's so nice to compose a lazy range with other types of ranges.


Boost list run by bdawes at, gregod at, cpdaniel at, john at