Boost logo

Boost :

From: François Duranleau (duranlef_at_[hidden])
Date: 2007-08-09 18:42:23


On Thu, 9 Aug 2007, Giovanni Piero Deretta wrote:

> On 8/9/07, Joseph Gauterin <joseph.gauterin_at_[hidden]> 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

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