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

Adds or replaces a key-value pair.

For object-based keys or values, the old objects are not automatically disposed. In this case, consider using kMap_Remove to first remove and dispose the existing item, then kMap_Add to add the new item.

Parameters
mapMap object.
keyPointer to key.
valuePointer to value.
Returns
Operation status.