std::map
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I am taking std::map which maps CString to CList. Can somebody help me how to iterate through . I did a similar example using CMap that maps CString to CString. Pls guide.
this is just an example typedef map StrToListMap; StrToListMap _stlMap; StrToListMap ::iterator mapIterator; mapIterator = stlMap.begin(); while(mapIterator != stlMap.end()) { CString *pString = ((*mapIterator).first); CList *pList = ((*mapIterator).second); mapIterator++; } hope that helps