Call this method to get the element at a given position in the tree.
CPair* GetAt( POSITION pos ) throw( ); const CPair* GetAt( POSITION pos ) const throw( ); void GetAt( POSITION pos, KOUTARGTYPE key, VOUTARGTYPE value ) const;
- The position value.
- The variable that receives the key.
- The variable that receives the value.
The first two forms return a pointer to a CPair. The third form obtains a key and a value for the given position.
In debug builds, an assertion failure will occur if pos is equal to NULL.