Re: [Boost-users] newbie ordering question forboost::multi_index::ordered_non_unique
Hello Kevin,
----- Mensaje original -----
De: Kevin McMahon
I'd like to pop items in my data set ordered by a key, but if the key is identical then ordered in the order I inserted them. Is there a good way to do that? I guess I could make a composite key using an increasing id.
Although it is not documented (and I think I should document it in light of LWG issue 233), non-hinted insertion always happens at the end of all previously stored elements with equivalent key. Is this what you want? Are you observing otherwise? Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
That's exactly what I want. I just could not see any promise of such behavior in the documentation. That's fabulous. -kevin On Jun 2, 2007, at 4:00 PM, JOAQUIN LOPEZ MU?Z wrote:
Hello Kevin,
----- Mensaje original ----- De: Kevin McMahon
Fecha: Sábado, Junio 2, 2007 4:15 pm Asunto: [Boost-users] newbie ordering question forboost::multi_index::ordered_non_unique Para: boost-users@lists.boost.org I'd like to pop items in my data set ordered by a key, but if the key is identical then ordered in the order I inserted them. Is there a good way to do that? I guess I could make a composite key using an increasing id.
Although it is not documented (and I think I should document it in light of LWG issue 233), non-hinted insertion always happens at the end of all previously stored elements with equivalent key. Is this what you want? Are you observing otherwise?
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
"JOAQUIN LOPEZ MU?Z"
-
Kevin McMahon