CList::RemoveAt
voidRemoveAt(POSITIONposition**);**
Parameters
position
The position of the element to be removed from the list.
Remarks
Removes the specified element from this list.
You must ensure that your POSITION value represents a valid position in the list. If it is invalid, then the Debug version of the Microsoft Foundation Class Library asserts.
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 CString("ABC") from the list.
myList.RemoveAt(myList.FindIndex(1));
// Verify CString("ABC") is not in the list.
ASSERT(myList.Find(CString("ABC")) == NULL);
CList Overview | Class Members | Hierarchy Chart
See Also CList::RemoveAll