Boost logo

Boost Users :

Subject: Re: [Boost-users] [multi_index] Is replace() ok within container iteration loop?
From: PB (newbarker_at_[hidden])
Date: 2010-03-18 05:49:03


On Wed, Mar 17, 2010 at 7:30 PM, Igor R <boost.lists_at_[hidden]> wrote:
>> This question is about boost:multi_index_container. Code is iterating
>> over a multi_index_container and replacing some elements. The data
>> being replaced has nothing to do with any keys/indices. Is this allowed by multi_index_container?
>
> It's allowed even if it affects indices, all the more so if it doesn't.
> http://www.boost.org/doc/libs/1_42_0/libs/multi_index/doc/tutorial/basics.html#ord_updating

Igor,

Thank you for the confirmation and documentation link.

Pete


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net