Boost logo

Boost Users :

From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2006-10-26 06:10:52


>
Hi!

In
http://boost.org/libs/multi_index/doc/advanced_topics.html
#advanced_key_extractors
I do not understand how the struct name_extractor comes to use
and why I have to define it. IIUC the code snippet
--------------------------------
typedef multi_index_container<
  employee *,
  indexed_by<
    ordered_non_unique<member<employee,std::string,&employee::name> > >
> employee_set;
--------------------------------
takes care of all what I need even without it - or do I have
to define the struct to make this work?

Markus


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