CTypedPtrList::RemoveHead

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

TYPE RemoveHead( );

Parameters

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

Return Value

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

Remarks

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.

Requirements

Header: afxtempl.h

See Also

Concepts

CTypedPtrList Class

CTypedPtrList Members

Hierarchy Chart

CTypedPtrList::RemoveTail

CObList::IsEmpty

CObList::GetHead

CObList::AddHead