CList::RemoveAll
voidRemoveAll();
Remarks
Removes all the elements from this list and frees the associated memory. No error is generated if the list is already empty.
Example
// Define myList.
CList<CString,CString&> myList;
// Add three elements to the list.
myList.AddTail(CString("XYZ"));
myList.AddTail(CString("ABC"));
myList.AddTail(CString("123"));
// Remove all of the elements in the list.
myList.RemoveAll();
// Verify the list is empty.
ASSERT(myList.IsEmpty());
CList Overview | Class Members | Hierarchy Chart
See Also CList::RemoveAt