The Boost Multi-Index Containers Library
By Joaquin Ma Lopez Munoz, September 01, 2004
The Boost Multi-index Containers Library is a framework that provides-according to your specification-multiple, distinct interfaces to a single underlying container.
September, 2004: The Boost Multi-Index Containers Library
Listing 6
typedef multi_index_container<
employee,
indexed_by<
ordered_unique<identity<employee> >,
ordered_non_unique<member<employee, std::string, &employee::name> >,
ordered_non_unique<
member<employee, int, &employee::age>,
std::greater<int> // default is std::less<int>
>
>
> company;