Boost logo

Boost :

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


AMDG

Arno Schödl wrote:
> Before spending time working on the problem you posed, I want to make sure than my solution does not get trashed because I use exceptions. If we want to avoid them, I would say that there is no way to get optimal performance with stacked iterators, and I would not even try.
>

It ought to be possible to propagate a bool up the stack
indicating whether the increment just reached the end.

In principle, if the compile inlines all the functions, then
it ought to be able to avoid any extra boolean test.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk