Udostępnij za pośrednictwem


CAtlMap::RemoveKey

Call this method to remove an element from the CAtlMap 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.

Example

See the example for CAtlMap::CAtlMap.

Requirements

Header: atlcoll.h

See Also

Reference

CAtlMap Class

CAtlMap::RemoveAll

CAtlMap::RemoveAtPos

Other Resources

CAtlMap Members