Boost logo

Boost :

Subject: Re: [boost] lifetime of ranges vs. iterators
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-09-03 12:34:19


Arno Schödl wrote:
> reference t=base.increment_and_dereference();
> I have not thought about whether other adaptor_ranges (difference, union, ...) could also use the increment_and_dereference idiom, so that mixed-type stacks (which are the really interesting ones) could be built.

Oh. The important optimization is that the increment is combined
with the test, the dereference is not as important.

Also, the performance of throwing an exception is probably unacceptable
for small ranges.

In Christ,
Steven Watanabe

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