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 10
typedef company::nth_index<1>::type name_index_t;
name_index_t & name_index = cmp.get<1>();
name_index_t::iterator it = name_index.find("Anna Jones");
employee anna = *it;
anna.name = "Anna Smith"; // she just married Calvin Smith
name_index.replace(it, anna); // update her record