How to clean up an object of CMapStringtoString
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I am using an object of CMapStringtoString. How should I clean up the map contents in the destructor.
you may call CMapStringtoString::RemoveAll, but CMapStringtoString destructor does this. you don't want to delete individual elements in this collection. For reference you may check [COLLECT Sample: Illustrates MFC Collection Classes^]