Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.