MapKeyCompare
Description
Key-comparison callback installed at MapInit. Same shape as the GenericCompare callbacks Map / Vec accept elsewhere.
Parameters
| Name | Direction | Description |
|---|---|---|
m |
in | Map. |
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Map.Type.c:61:
bool result = MapPairCount(&map) == 0 && MapCapacity(&map) == 0 && MapTombstones(&map) == 0 &&
MapEntries(&map) == NULL && MapStates(&map) == NULL && MapKeyCompare(&map) == i32_compare &&
MapValueCompare(&map) == NULL && MapKeyHash(&map) == i32_hash &&
MapPolicy(&map).should_rehash == MapPolicyLinear.should_rehash &&- In
Map.Type.c:80:
bool result =
MapKeyCompare(&map) == i32_compare && MapValueCompare(&map) == i32_compare && MapKeyHash(&map) == i32_hash;
MapDeinit(&map);
Last updated on