Boost logo

Boost Users :

Subject: [Boost-users] Sort boost composite container
From: Uthpal Urubail (uthpal.urubail_at_[hidden])
Date: 2014-01-20 05:58:38


I am having below composite container. I am looking to sort the container by member<CA,std::string,&CA::card> at the end.
Can some one help me to achieve this?

typedef multi_index_container<
  CA,
  indexed_by<
    ordered_unique<
      composite_key<
        CA,
        member<CA,std::string,&CA::name>,
        member<CA,std::string,&CA::displayName>,
        member<CA,std::string,&CA::card>
>
>
>
> duplicateBook;

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