Share via


CRBTree::GetNextKey

Call this method to get the key of an element stored in the tree and advance the position to the next element.

const K& GetNextKey( 
   POSITION& pos  
) const throw( );

Parameters

Return Value

Returns a reference to the next key in the tree.

Remarks

Updates the current position counter, pos. If there are no more entries in the tree, the position counter is set to NULL.

Requirements

Header: atlcoll.h

See Also

Reference

CRBTree Class

CRBTree::FindFirstKeyAfter

CRBTree::GetNextValue