Zen API

- Home
- Topics
- Types
- Files

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

  map | Map object.
  key | Pointer to key.
  value | Pointer to value.

Returns
  Operation status.