Delen via


CMap::RemoveKey

Looks up the map entry corresponding to the supplied key; then, if the key is found, removes the entry.

BOOL RemoveKey( 
   ARG_KEY key  
);

Parameters

  • ARG_KEY
    Template parameter specifying the type of the key.

  • key
    Key for the element to be removed.

Return Value

Nonzero if the entry was found and successfully removed; otherwise 0.

Example

See the example for CMap::SetAt.

Requirements

Header: afxtempl.h

See Also

Reference

CMap Class

Hierarchy Chart

CMap::RemoveAll

Other Resources

CMap Members