CRBTree::GetNext
Call this method to obtain a pointer to an element stored in the CRBTree object, and advance the position to the next element.
const CPair* GetNext(
POSITION& pos
) const throw( );
CPair* GetNext(
POSITION& pos
) throw( );
Parameters
- pos
The position counter, returned by a previous call to methods such as CRBTree::GetHeadPosition or CRBTree::FindFirstKeyAfter.
Return Value
Returns a pointer to the next CPair value in the tree.
Remarks
The pos position counter is updated after each call. If the retrieved element is the last in the tree, pos is set to NULL.
Requirements
Header: atlcoll.h