Boost logo

Boost :

Subject: Re: [boost] Does Boost has an utility to replace all OLD Keys with NEW one for MultiMap/Map?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-05-07 13:31:13


Mathias Gaunard wrote:
> Steven Watanabe wrote:
>> AMDG
>>
>> Mathias Gaunard wrote:
>>> Tushar Chowdhury wrote:
>>>> As of now I failed to get such an algo.
>>>
>>> boost::assign(m.equal_range(old_key), new_key); ?
>>
>> ?????
>>
>> boost::assign is a namespace.
>
> My bad, I meant 'fill', not 'assign'. I confused it with the assign
> member of containers.

I forgot to say that this was this a rough idea, and of course it
doesn't work since map iterators are const, and since new_key is not the
not the right type anyway.
Sorry for the bad advice.


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