I've got a (hopefully) simple question, what is the best way to go through all elements of that map:
map<int, CClass>
without knowing all the 'ints'?
What I was trying to do was:
// is filled with infos from another mapmap<int, CClass> TempMap;int Size = TempMap.size();for(int i = 0; i < Size; i++){ CClass Temp = TempMap.begin(); TempMap.erase(TempMap.begin()); //do something with 'Temp'}
My problem is just that begin() returns an iterator and I don't have any idea how to work with this. Can anyone pls help me? Or does anyone got even an better idea going through that map?