Boost logo

Boost :

From: Lewis Hyatt (lhyatt_at_[hidden])
Date: 2006-07-31 11:52:32


> I think those key-only and value-only iterators would have value
> outside just this library and would perhaps be better as a more
> general separate utility (so they could be used on ordinary maps as
> well).

they are essentially already in boost, they are just typedefs for
boost::transform_iterator (although you have to provide select1st and select2nd
function objects, but altogether it's only a few lines of code).

-lewis


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