From: François Duranleau (duranlef_at_[hidden])
Date: 2007-08-09 18:46:14
On Thu, 9 Aug 2007, François Duranleau wrote:
> 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'?).
Sorry for the extra noise, it seems I edited this post to quickly and I
didn't notice I cut the wrong part. This was meant as a reply to Giovanni
Piero Deretta's post about transform_iterator. Sorry again.
-- 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