Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
TYPE**&GetAt(POSITIONposition);**
TYPEGetAt(POSITIONposition**)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.
Example
See the example for CList::GetHeadPosition.
CList Overview | Class Members | Hierarchy Chart
See Also CList::Find, CList::SetAt, CList::GetNext, CList::GetPrev, CList::GetHead