POSITION GetHeadPosition( ) 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 head element of this list.
Example
// Define myList.
CList<CString,CString&> myList;
// Add an element to the front of the list.
myList.AddHead(CString("ABC"));
// Verify the element at the head position
// is the one added.
POSITION pos = myList.GetHeadPosition();
ASSERT(CString("ABC") == myList.GetAt(pos));
CList Overview | Class Members | Hierarchy Chart
See Also CList::GetTailPosition