Поделиться через


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 
);

Параметры

  • ARG_KEY
    Template parameter specifying the type of the key.

  • key
    Key for the element to be removed.

Возвращаемое значение

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

Заметки

The DestructElements helper function is used to remove the entry.

Пример

See the example for CMap::SetAt.

Требования

Header: afxtempl.h

См. также

Основные понятия

CMap Class

CMap Members

Hierarchy Chart

CMap::RemoveAll