CMap::RemoveAll

void RemoveAll( );

Remarks

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

The function works correctly if the map is already empty.

Example

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());

CMap OverviewClass MembersHierarchy Chart

See Also   CMap::RemoveKey, DestructElements