
3 Feb
2010
3 Feb
'10
3:54 p.m.
Dejan escribió:
typedef mi::multi_index_container< employee *, mi::indexed_by< mi::ordered_unique<mi::member<employee, int, &employee::id> >
employee_set;
Maybe i should mention that I search for something like this:
employee_set.find(employee* pointer);
and
employee_set.find(int id)
Now that I think again about it, when you write: employee* p=... employee_set.find(p); Can't you just write this employee* p=... employee_set.find(p->id); and be done with only one lookup criterion? Joaquín M López Muñoz Telefónica, Investigación y Desarrollo