Exporter (0) Imprimer
Développer tout

CMap::RemoveAll

Removes all the values from this map by calling the global helper function DestructElements.


void RemoveAll( );

The function works correctly if the map is already empty.

CMap<int,int,CPoint,CPoint> myMap;

// Add 10 elements to the map.
for (int i=0;i < 10;i++)
   myMap.SetAt( i, CPoint(i, i) );

myMap.RemoveAll();

ASSERT(myMap.IsEmpty());

Ajouts de la communauté

AJOUTER
Afficher:
© 2014 Microsoft