This documentation is archived and is not being maintained.

CRBMap::RemoveKey 

Call this method to remove an element from the CRBMap object, given the key.


bool RemoveKey(
   KINARGTYPE key 
) throw( );

Parameters

key

The key corresponding to the element pair you want to remove.

Returns true if the key is found and removed, false on failure.

See the documentation for the base class CRBTree for information on the other methods available.

// Remove an element, based on the key of 0
ATLVERIFY(myMap.RemoveKey(0) == true);
Show: