<div class="gmail_quote">On Wed, Oct 17, 2012 at 9:51 AM, Dan Posluns <span dir="ltr">&lt;<a href="mailto:dan@danposluns.com" target="_blank">dan@danposluns.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi there,<br>
<br>
I&#39;m attempting to use intrusive associative containers, but it&#39;s essential to<br>
the application that as I add &quot;equivalent&quot; objects to the multiset that their<br>
order is maintained, ie. that the sort is stable.<br>
<br>
I&#39;m looking at using avl_multiset for its fast retrieve times. I ran an<br>
experiment several times over where I added 1000 entries of random numbers from<br>
0-9 that also contained ordering information to a multiset, and that ordering<br>
information wound up being preserved, even when I removed some items and added<br>
new ones to the initial tree. So that looks promising. If someone were able to<br>
confirm the results of my experiment it would be better, though. Best would be<br>
documentation that lists which multiset implementations are stable and which<br>
aren&#39;t, but I can&#39;t find such a thing in the docs.<br></blockquote><div><br>I agree; if stability of insertions with equal keys can be guaranteed (which I don&#39;t see why it can&#39;t be off-hand for any of the binary tree implementations), that fact would be nice to add to the documentation.<br>
<br>- Jeff<br><br></div></div>

