
On Sun, 08 Aug 2010 13:12:17 -0700, Ryan Gallagher
Mostafa
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
Thanks. I should have clarified in my earlier posting that this question was posed after reading the documentation on key-extractors. More precisely, I'm looking for a keyS extractor. I am/was hoping something of this nature is constructible from what is already in the MultiIndex library. -Mostafa