Boost logo

Boost Users :

From: Boris (boriss_at_[hidden])
Date: 2007-02-21 12:26:01


On Wed, 21 Feb 2007 19:10:03 +0200, Joaquín Mª López Muñoz
<joaquin_at_[hidden]> wrote:

Hi Joaquín,

thanks for your quick reply!

> [...]
> struct null_modifier
> {
> template<typename T>
> void operator()(const T&)const{}
> };
>
> ...
>
> m2.modify(it2,null_modifier());
>
> which forces reindexation without actually touching *it2. Is this what
> you're after? Thanks for using Boost.MultiIndex,

Okay, thanks! I thought there might be something else like m2.refresh().
It would be nice if the multi_index_container provided such a method as
you could change objects hold by the container directly (not through
multi_index_container methods) and then make the container recreate the
indexes.

Thanks for your nice library, :)
Boris


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