다음을 통해 공유


CMap::RemoveAll

전역 도우미 함수를 호출 하 여 모든 값이이 맵에서 제거 DestructElements.

void RemoveAll( );

설명

지도 이미 비어 있는 경우 함수를 제대로 작동 합니다.

예제

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

요구 사항

헤더: afxtempl.h

참고 항목

참조

클래스 CMap

계층 구조 차트

CMap::RemoveKey