Boost logo

Boost Users :

Subject: Re: [Boost-users] [MultiIndex] is it possible to create multi-key key-extractors?
From: Ryan Gallagher (ryan.gallagher_at_[hidden])
Date: 2010-08-08 16:12:17


Mostafa <mostafa_working_away <at> yahoo.com> writes:

> struct Flower
> {
> int type;
> string name;
> std::list<string> aliases;
> };
>
> I want to create a multiindexed container that indexes Flower objects by
> type, name, and aliases, where aliases is some iteratable collection of
> strings.
[snip]

You probably want to read up on MultiIndex's Key_Extractor concept and
some of the realizations besides "member". Specifically the "global_fun"
may be helpful: http://tinyurl.com/2cumme4

HTH,

-Ryan


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