Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kSize kMap_SetHashFx | ( | kMap | map,
|  | kHashFx | function
| ) |  |

Sets a custom hash code generator.

Calling this method will cause the existing map keys to be rehashed using using the new hash function. If changing both the equals function and the hash function, change equals first, then hash.

Parameters

  map | Map object.
  function | Hash code function (or kNULL to unset).

Returns
  Operation status.