Boost logo

Boost Users :

Subject: Re: [Boost-users] [MultiIndex] is ordered_non_unique stable?
From: John M. Dlugosz (mpbecey7gu_at_[hidden])
Date: 2013-01-20 05:09:30


> The only problem with this is that the behavior is *undocmented*. If you want
> to stay legal, use hinted insertion with end() (which will *documentedly*
> work for all the ordered_non_unique indices of your container, not only the one
> you happen to be doing for the insertion.)
>
> Joaqu?n M L?pez Mu?oz
> Telef?nica Digital
>
>
>
That is very interesting. The wording is kind of strange though: "If succesful, insertion
happens as close as possible to the location just prior to |position|." I wonder if
stability was the intention?

Thank you very much for your analysis of the code.

---John



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