Skip to content

MapClear

MapClear

Description

Clear all entries but retain allocated storage.

Parameters

Name Direction Description
m in,out Hash map.

Usage example (Cross-references)

Usage examples (Cross-references)
        MapSetOnlyR(&map, 1, 10);
        MapSetOnlyR(&map, 2, 20);
        MapClear(&map);
    
        bool result = map.capacity >= 32 && MapPairCount(&map) == 0 && MapEmpty(&map);
    /// cfg[in,out] : Config object.
    ///
    #define KvConfigClear(cfg) MapClear(cfg)
    
    ///
Last updated on