Export (0) Print
Expand All


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( );


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.


The pos position counter is updated after each call. If the retrieved element is the last in the tree, pos is set to NULL.

See Also

CRBTree Overview | Class Members | CRBTree::GetPrev

© 2014 Microsoft