Subject: Re: [boost] Does Boost has an utility to replace all OLD Keys with NEWone for MultiMap/Map?
From: Paul Rose (prose_at_[hidden])
Date: 2009-05-07 09:25:03
will leave begin either at end() or at the next equal key or at the
You could leave out the 2nd find() and change the if to:
if(begin != container.end() && !container.key_comp(oldKey,
Which should be a bit more efficient
> -----Original Message-----
> From: boost-bounces_at_[hidden]
> [mailto:boost-bounces_at_[hidden]] On Behalf Of Tushar Chowdhury
> Sent: Thursday, May 07, 2009 4:10 AM
> To: boost_at_[hidden]
> Subject: [boost] Does Boost has an utility to replace all OLD
> Keys with NEWone for MultiMap/Map?
> Hi Guys,
> As of now I failed to get such an algo. I've come up with an
> proposed solution. Please verify:
Confidentiality Notice: This email, including attachments, may include non-public, proprietary, confidential or legally privileged information. If you are not an intended recipient or an authorized agent of an intended recipient, you are hereby notified that any dissemination, distribution or copying of the information contained in or transmitted with this e-mail is unauthorized and strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and permanently delete this e-mail, its attachments, and any copies of it immediately â you should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you.