
3 Sep
2008
3 Sep
'08
4:34 p.m.
AMDG 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