Boost logo

Boost Users :

From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2007-04-26 11:30:59


Ovanes Markarian ha escrito:

> Hello,
>
> Is there any way to find an element in the multi-index container by it's hash
> and proceed with all elements which were added later on in the sequence
> after it?

Certainly, please read about project() facilities at:

http://boost-consulting.com/boost/libs/multi_index/doc/tutorial/basics.html#projection

So, find the element using the hased index and then project to an iterator
of the sequenced index pointing to that same element.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


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