Boost logo

Boost :

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


AMDG

Arno Schödl wrote:
> As with these end checks, what if dereference would throw exceptions? End checks gone, all the way up the stack...
>

Unfortunately not.

This simply moves the check into the dereference operation
Also, remember that a filter_iterator dereferences iterator
in it's operator++, so you the number of comparisons is unchanged.

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