Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer


Call this method to obtain a pointer to an element stored in the CRBTree object, and then update the position to the previous element.

const CPair* GetPrev(
   POSITION& pos 
) const throw( );
CPair* GetPrev(
   POSITION& pos 
) throw( );



The position counter, returned by a previous call to methods such as CRBTree::GetHeadPosition or CRBTree::FindFirstKeyAfter.

Returns a pointer to the previous CPair value stored in the tree.

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

© 2015 Microsoft