Dynamic array-based [K,V] pair associative container.
Contiguous array-based associative container with [K,V] pairs. GblArrayMap is essentially a flat map structure with a few specific properties:
- Value types can either be uinptr_t userdata or typed GblVariants
- Userdata types can have per-entry custom destructors
- For non-trivial key types, a custom comparator can be specified
- insertion and searching can either be done sorted in a binary search or unsorted linearly
- Note
- GblArrayMap is a lazily-allocated structure, meaning it isn't actually allocated until it's needed. This is why the majority of the API takes a pointer to a pointer, so a NULL pointer value is a valid empty map. You can optionally preconstruct the structure with GblArrayMap_create.
- See also
- GblArrayMapEntry
Definition at line 67 of file gimbal_array_map.h.