
3 Feb
2010
3 Feb
'10
4:46 p.m.
OK, if you need to find elements by two different criteria then this is Boost.MultiIndex is designed for. What is the correct index for a multi_index_container to search for its elements as pointer?
Actual I have this:
typedef multi_index_container
<
employee *,
indexed_by
<
// WRONG:
// ordered_unique<member>employee, emplyoee*, &employee> >,
// OK
ordered_unique
employee_set;