How do i alter an element in the set for example how do i edit the 'm_a' member variable of a element in my set?
class CPerson
{
public:
int m_a;
CPerson(int _a)
{
m_a = _a;
}
}
set<CPerson*> myPersonSet;
..
...
set<CPerson*>::iterator it = myPersonSet.find( CPerson(20) );
// How do i change the value of the object i found in my list once i found it and it's referenced by my iterator?