CTypedPtrList::RemoveHead

TYPE RemoveHead( );

Return Value

The pointer previously at the head of the list. This pointer is of the type specified by the template parameter TYPE.

Parameters

TYPE

Template parameter specifying the type of elements stored in the list.

Remarks

Removes the element from the head of the list and returns it.

You must ensure that the list is not empty before calling RemoveHead. If the list is empty, then the Debug version of the Microsoft Foundation Class Library asserts. Use IsEmpty to verify that the list contains elements.

CTypedPtrList OverviewClass MembersHierarchy Chart

See Also   CTypedPtrList::RemoveTail, CPtrList::IsEmpty, CPtrList::GetHead, CPtrList::AddHead