Boost logo

Boost Users :

Subject: Re: [Boost-users] multi_index: changing elements?
From: Igor R (boost.lists_at_[hidden])
Date: 2009-01-28 09:01:50


>
> I'm quiet new to boost and especially multi_index. I want to get a
> non-constant reference to elements I inserted into this container, but
> when dereferencing the iterator all I get is a const reference. What am
> I doing wrong? Please have a look at the attached example.
>
You can update elements by means of member functions: replace(), modify(),
modify_key()
http://www.boost.org/doc/libs/1_37_0/libs/multi_index/doc/tutorial/basics.html#ord_updating



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