CMap::RemoveAll

更新 : 2007 年 11 月

グローバルなヘルパ関数 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

その他の技術情報

CMap のメンバ