
13 May
2004
13 May
'04
2:08 p.m.
"Neal D. Becker" <ndbecker2@verizon.net> writes:
I wonder if there is a more elegant approach?
Yeah: cache a value in the iterator with boost::optional<value_type>. Put a new value in the cache when the iterator is incremented. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com