Skip to content

MapEmpty

Description

Check whether the map has no entries.

Parameters

Name Direction Description
m in Hash map.

Success

Returns true when the map length is 0. The map is not modified.

Failure

Returns false when the map contains at least one entry.

Usage example (Cross-references)

Usage examples (Cross-references)
    
        bool result = (reserved_capacity >= 32) && (MapCapacity(&map) == reserved_capacity) && (MapTombstones(&map) == 0) &&
                      (MapPairCount(&map) == 0) && MapEmpty(&map) && !MapContainsKey(&map, 1) && !MapContainsKey(&map, 2);
    
        MapSetOnlyR(&map, 7, 70);
Last updated on