Call this member function to retrieve the element (or a reference to the element) associated with a given position. The position parameter is a key for the list. It is not the same as an index, and you cannot operate on the position value yourself.
TYPE& GetAt( POSITION position );
TYPE GetAt( POSITION position ) const;
Header file: | Afxtempl.h |
Platforms: | |
Versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CList Overview, CList Member Functions, List Classes, CList::Find, CList::SetAt, CList::GetNext, CList::GetPrev, CList::GetHead