Udostępnij za pośrednictwem


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.

Return Value

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

Remarks

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

Example

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

Requirements

Header: atlcoll.h

See Also

Reference

CRBMap Class

CRBMap::SetAt

Other Resources

CRBMap Members