MapInitWithDeepCopy
Description
Initialize a map with deep-copy callbacks for keys and values.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Foreach.c:84:
CityGraph graph = GraphInitWithDeepCopy(NULL, str_deinit, &alloc);
CityIndex index = MapInitWithDeepCopy(str_hash, str_compare, str_init_copy, str_deinit, NULL, NULL, &alloc);
// The helpers take const Str *. Build one stack Str per literal and
- In
Ops.c:34:
typedef Map(Zstr, Zstr) ZstrMap;
DefaultAllocator alloc = DefaultAllocatorInit();
ZstrMap map = MapInitWithDeepCopy(
zstr_hash,
zstr_compare,- In
Ops.c:80:
typedef Map(Zstr, Zstr) ZstrMap;
DefaultAllocator alloc = DefaultAllocatorInit();
ZstrMap map = MapInitWithDeepCopy(
zstr_hash,
zstr_compare,- In
Insert.c:995:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithDeepCopy(i32_hash, i32_compare, NULL, NULL, toggled_value_copy_init, NULL, &alloc);
g_value_copy_should_fail = false;- In
Type.c:162:
typedef Map(Zstr, Zstr) ZstrMap;
DefaultAllocator alloc = DefaultAllocatorInit();
ZstrMap map = MapInitWithDeepCopy(
zstr_hash,
zstr_compare,
Last updated on