CList::GetTail
TYPE**&GetTail();**
TYPEGetTail()const;
Return Value
See the return value description for GetHead.
Parameters
TYPE
Template parameter specifying the type of elements in the list.
Remarks
Gets the CObject pointer that represents the tail element of this list.
You must ensure that the list is not empty before calling GetTail. 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.
Example
// Define myList.
CList<CString,CString&> myList;
// Add an element to the end of the list.
myList.AddTail(CString("ABC"));
// Verify the element was added to the end of the list.
ASSERT(CString("ABC") == myList.GetTail());
CList Overview | Class Members | Hierarchy Chart
See Also CList::AddTail, CList::AddHead, CList::RemoveHead, CList::GetHead