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.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk