[multi_index] Is replace() ok within container iteration loop?

Hello, 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? Thanks, Pete

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.ht...

On Wed, Mar 17, 2010 at 7:30 PM, Igor R
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.ht...
Igor, Thank you for the confirmation and documentation link. Pete
participants (2)
-
Igor R
-
PB