« Return to Thread: Multi Index Container - key extractor on a member of a member

Re: Multi Index Container - key extractor on a member of a member

by Joaquin M Lopez Munoz :: Rate this Message:

Reply to Author | View in Thread

Hi Avi,

----- Mensaje original -----
De: Avi Revivo <revivoavi@...>
Fecha: Domingo, Diciembre 23, 2007 2:01 pm
Asunto: [boost] Multi Index Container - key extractor on a member of a
member
Para: boost@...
>
> Hi All,
>
> Is it possible/exist a key extractor that can extract a member of
> a member of the base type stored by the Multi Index container.
> I tried to do this with the standard member extractor but failed
> to do so.

You must write your own custom extractor to do so. The tutorial
section on this issue (http://tinyurl.com/39shzv ) shows precisely
how to write an extractor that provides as the key a member of a
member of the element. Please come back if you have problems
writing your key extractor after the instructions on the afore-
mentioned docs section.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 « Return to Thread: Multi Index Container - key extractor on a member of a member