7 May
2015
7 May
'15
9:21 a.m.
U.Mutlu
Hi, I need a container like std::set which delivers also the index when using the member function lower_bound(). IMO std::set lacks this important functionality. I cannot use std::distance(myset.begin(), it), because that is very slow as it walks again all the items from the beginning.
Can boost MultiIndex be used for this [...]?
Not the current version (Boost 1.58), but please take a look at http://article.gmane.org/gmane.comp.lib.boost.user/83882 Joaquín M López Muñoz Telefónica