9 Aug
2010
9 Aug
'10
12:29 a.m.
AMDG Mostafa wrote:
For the following struct:
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. I just don't know if it's possible to create a multi-key key-extractor for aliases. So far I've come up with the following:
I assume that you want to be able to look up the Flower from a string, which should be one of the aliases? You can't do this with multi-index. A single object corresponds to a single key. In Christ, Steven Watanabe