|
Boost Users : |
Subject: [Boost-users] How to sort multi_index_container + composite_key + Sort by Vale. Is it possible?
From: Uthpal Urubail (uthpal.urubail_at_[hidden])
Date: 2013-05-16 15:58:57
Is it possible to sort the container by value? In below example by "member<Element_Entry,size_t,&Element_Entry::Id>"
Or also other keys like: Sort by "member<Element_Entry,size_t,&Element_Entry::Index>"
typedef multi_index_container<
Element_Entry,
indexed_by<
ordered_non_unique<
composite_key<
Element_Entry,
member<Element_Entry,size_t,&Element_Entry::MatId>,
member<Element_Entry,double,&Element_Entry::Thickness>,
member<Element_Entry,double,&Element_Entry::Angle>,
member<Element_Entry,size_t,&Element_Entry::Index>
>
>,
ordered_unique<
member<Element_Entry,size_t,&Element_Entry::Id>
>
>
> ElementRecord;
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