CList::RemoveAll
更新 : 2007 年 11 月
リストからすべての要素を削除し、関連付けられているメモリを解放します。
void RemoveAll( );
解説
リストが既に空であっても、エラーは発生しません。
使用例
// Define myList.
CList<CString,CString&> myList;
// Add three elements to the list.
myList.AddTail(CString(_T("XYZ")));
myList.AddTail(CString(_T("ABC")));
myList.AddTail(CString(_T("123")));
// Remove all of the elements in the list.
myList.RemoveAll();
// Verify the list is empty.
ASSERT(myList.IsEmpty());
必要条件
ヘッダー : afxtempl.h