Skip to content
MapValueCopyDeinit

MapValueCopyDeinit

Description

Deep-copy deinit callback wired for map values, or NULL if the map was initialised without value deep-copy semantics.

Parameters

Name Direction Description
m in Map.

Usage example (Cross-references)

Usage examples (Cross-references)
    
        bool result = (MapKeyCopyInit(&map) == (GenericCopyInit)zstr_init_clone) &&
                      (MapValueCopyDeinit(&map) == (GenericCopyDeinit)zstr_deinit);
    
        MapInsertR(&map, "alpha", "first");
                      MapKeyCopyDeinit(&map) == (GenericCopyDeinit)zstr_deinit &&
                      MapValueCopyInit(&map) == (GenericCopyInit)zstr_init_clone &&
                      MapValueCopyDeinit(&map) == (GenericCopyDeinit)zstr_deinit &&
                      MapAllocator(&map) == ALLOCATOR_OF(&alloc);
Last updated on