[MultiIndex] is ordered_non_unique stable?

Will equivalent elements in a ordered_non_unique index be "stable" and maintain their relative ordering based on the order in which they were inserted? Or do I need to use a complex key, adding my own sequence number, to ensure the desired ordering? —John

John M. Dlugosz
Will equivalent elements in a ordered_non_unique index be "stable" and maintain their relative ordering based on the order in which they were inserted?
Yes, this is the case, though the explanation is a little sophisticated:
Suppose we have an ordered_non_unique index of doubles and the following range
happens to be inserted into the container:
1.0 2.0 3.0 3.0 3.0 4.0 5.0
Now we try to insert and element k with value 3.0: will it go righmost or some
other place? If we take a look at the relevant piece of code in
participants (2)
-
Joaquin M Lopez Munoz
-
John M. Dlugosz