CList::GetPrev

Call this member function to retrieve the list element identified by rPosition, and then set rPosition to the POSITION value of the previous entry in the list. You can use GetPrev in a reverse iteration loop if you establish the initial position with a call to GetTailPosition or Find.

Syntax

TYPE& GetPrev( POSITION& rPosition );

TYPE GetPrev( POSITION& rPosition ) const;

At A Glance

Header file: Afxtempl.h
Platforms:
Versions: 1.0 and later
Complete documentation: Visual C++ documentation

See Also

CList Overview, CList Member Functions, List Classes, CList::Find, CList::GetTailPosition, CList::GetHeadPosition, CList::GetNext, CList::GetHead