Boost logo

Boost Users :

Subject: [Boost-users] composite_key with array member
From: Uthpal Urubail (uthpal.urubail_at_[hidden])
Date: 2014-08-13 09:57:26


I am looking for a container where I have to use 5-10 keys to get the value.
I am trying to write something like below.. Can some one help to solve this?

struct entry

{

    int a[10];

    int id;

};

using boost::multi_index_container;

using namespace boost::multi_index;

typedef multi_index_container<

    entry,

    indexed_by<

    ordered_non_unique<

    composite_key<

    entry,

    member<entry,unsigned int,&entry::a> ????

>

>,

    ordered_unique<

    member<entry,unsigned int,&entry::id>

>

>

> book;

Regards,
UJ



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