If I have a boost::multi_index as follows,
typedef multi_index_container<
employee,
indexed_by<
hashed_unique<mem_fun<employee, std::string, &employee::getname> >,
hashed_unique<mem_fun<employee, int, &employee::getage> >
>
> employee_set;
I understand that the objects of class "employees" that are inserted into this container are stored in such a way that it can be retrieved in O(1) time(as a hash map).
How will it be stored when the member variables(name, age) are updated during the course of the program(like maybe with something like setname or setage) and still be hashed using those values? Am I understanding something wrong?
TIA
-R