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>> 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.

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:



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at