Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kMap_Discard ( kMap  map,
const void *  key 
)

Removes a key-value pair from the map.

For object-based keys or values, the old objects are not automatically disposed. In this case, kMap_Remove can be used instead to receive the old keys/values.

Parameters
mapMap object.
keyPointer to key.
Returns
kOK if removed; kERROR_NOT_FOUND if key not found.