Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kMap_AddT | ( |  | kMap_map,
|  |  | KPtr_key,
|  |  | VPtr_value
| ) |  |
| related

Adds a new key-value pair.

A debug assertion will be raised if the size of the specified key or value type is not equal to the size of the collection key or value type, respectively.

Parameters

  kMap_map | Map object.
  KPtr_key | Strongly-typed pointer to key.
  VPtr_value | Strongly-typed pointer to value.

Returns
  kOK if added; kERROR_ALREADY_EXISTS if key already present.