Skip to content

MapKeyHash

Description

Key-hash callback installed at MapInit. Same shape as the GenericHash callbacks Map / Vec accept elsewhere.

Parameters

Name Direction Description
m in Map.

Usage example (Cross-references)

Usage examples (Cross-references)
        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 &&
                      MapPolicy(&map).next_capacity == MapPolicyLinear.next_capacity &&
    
        bool result =
            MapKeyCompare(&map) == i32_compare && MapValueCompare(&map) == i32_compare && MapKeyHash(&map) == i32_hash;
    
        MapDeinit(&map);
Last updated on