Partager via


CTypedPtrList::RemoveTail

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

TYPE RemoveTail( );

Parameters

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

Return Value

The pointer previously at the tail 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 RemoveTail. 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

Reference

CTypedPtrList Class

Hierarchy Chart

CTypedPtrList::RemoveHead

CObList::IsEmpty

CObList::GetTail

CObList::AddTail

Other Resources

CTypedPtrList Members