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

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

See Also

Concepts

CRBTree Class

CRBTree Members

CRBTree::GetPrev