|
Boost Users : |
Subject: Re: [Boost-users] multi index container
From: Dejan (xamiw_at_[hidden])
Date: 2010-02-03 11:46:40
> 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<member<employee,int,&employee::id> >
>
> employee_set;
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