MapInitWithValueCompare
Description
Initialize a map with key/value comparators.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Ops.c:121:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap first = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
IntIntMap second = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);- In
Ops.c:122:
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap first = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
IntIntMap second = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
MapInsertR(&first, 1, 10);- In
Ops.c:206:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
MapInsertR(&map, 1, 10);- In
Ops.c:235:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
MapInsertR(&map, 1, 10);- In
Ops.c:297:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(const_hash, i32_compare, i32_compare, &alloc);
MapInsertR(&map, 0, 500);- In
Insert.c:366:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
MapInsertR(&map, 1, 10);- In
Insert.c:421:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
MapInsertR(&map, 5, 50);- In
Insert.c:652:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
int k = 1;
int v = 10;- In
Insert.c:1154:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
MapInsertR(&map, 7, 70);- In
Type.c:78:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
bool result =- In
Remove.c:87:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
MapInsertR(&map, 5, 50);- In
Remove.c:110:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
MapInsertR(&map, 5, 50);- In
Access.c:146:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
MapSetOnlyR(&map, 7, 70);- In
Access.c:191:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
MapSetOnlyR(&map, 11, 110);- In
Access.c:220:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(i32_hash, i32_compare, i32_compare, &alloc);
bool result = (MapGetFirstPtr(&map, 7) == NULL); // map_get_value_ptr early-out
- In
Access.c:346:
typedef Map(int, int) IntIntMap;
DefaultAllocator alloc = DefaultAllocatorInit();
IntIntMap map = MapInitWithValueCompare(const_hash, i32_compare, i32_compare, &alloc);
// Distinct keys, all in one bucket.
Last updated on