TYPE& GetAt( POSITION position );
TYPE GetAt( POSITION position ) const;
Return Value
See the return value description for GetHead.
Parameters
TYPE
Template parameter specifying the type of object in the list.
position
A POSITION value returned by a previous GetHeadPosition or Find member function call.
Remarks
A variable of type POSITION is a key for the list. It is not the same as an index, and you cannot operate on a POSITION value yourself. GetAt returns the element (or a reference to the element) associated with a given position.
You must ensure that your POSITION value represents a valid position in the list. If it is invalid, then the Debug version of the Microsoft Foundation Class Library asserts.
CList Overview | Class Members | Hierarchy Chart
See Also CList::Find, CList::SetAt, CList::GetNext, CList::GetPrev, CList::GetHead