
9 Aug
2007
9 Aug
'07
10:42 p.m.
On Thu, 9 Aug 2007, Giovanni Piero Deretta wrote:
On 8/9/07, Joseph Gauterin <joseph.gauterin@googlemail.com> wrote:
Would anyone be interested in having a couple of extra specialized iterator adaptors in Boost.Iterator?
I'm thinking of 'key_iterator' and 'value_iterator' adaptors (along with convenience 'make_key_iterator' and 'make_value_iterator' functions) that allow any associative container (that follows standard library idioms) to be accessed as either a range of keys or as a range of values.
Yes, I always forget about that one. To generalize, we could use a functor wrapping boost::get<> (and/or tr1::get<>) (how to call it, 'getter'?). -- François Duranleau LIGUM, Université de Montréal