CList::GetTailPosition
POSITIONGetTailPosition()const;
Return Value
A POSITION value that can be used for iteration or object pointer retrieval; NULL if the list is empty.
Remarks
Gets the position of the tail element of this list; NULL if the list is empty.
Example
// Define myList.
CList<CString,CString&> myList;
// Add an element to the end of the list.
myList.AddTail(CString("ABC"));
// Verify the element at the end position
// is the one added.
POSITION pos = myList.GetTailPosition();
ASSERT(CString("ABC") == myList.GetAt(pos));
CList Overview | Class Members | Hierarchy Chart
See Also CList::GetHeadPosition, CList::GetTail