W
Whybother
I have class CMyClass to which I create objects of and store a count of them
in a stl map. (stlport)
like so
typedef map<CMyClass, unsigned, myclass_less> Results_Map;
....
Results_Map m_Map;
....
....
CMyClass mc(...);
m_Map[mc]++;
....
How can I get access to the same mc object I just added to the map? In other
words I'm trying to do something like
CMyClass& mcRef = *m_Map[mc];
If thats possible.
thanks
in a stl map. (stlport)
like so
typedef map<CMyClass, unsigned, myclass_less> Results_Map;
....
Results_Map m_Map;
....
....
CMyClass mc(...);
m_Map[mc]++;
....
How can I get access to the same mc object I just added to the map? In other
words I'm trying to do something like
CMyClass& mcRef = *m_Map[mc];
If thats possible.
thanks