46struct cx_hash_map_element_s;
108#define cxHashMapCreateSimple(itemsize) cxHashMapCreate(NULL, itemsize, 0)
#define cx_attr_export
Only used for building Windows DLLs.
Definition common.h:285
#define cx_attr_nonnull
All pointer arguments must be non-NULL.
Definition common.h:136
#define cx_attr_nodiscard
Warn about discarded return value.
Definition common.h:265
#define cx_attr_malloc
The attributed function always returns freshly allocated memory.
Definition common.h:151
#define cx_attr_dealloc(...)
Not supported in clang.
Definition common.h:167
int cxMapRehash(CxMap *map)
Increases the number of buckets, if necessary.
CxMap * cxHashMapCreate(const CxAllocator *allocator, size_t itemsize, size_t buckets)
Creates a new hash map with the specified number of buckets.
Interface for map implementations.
void cxMapFree(CxMap *map)
Deallocates the memory of the specified map.
Structure holding the data for an allocator.
Definition allocator.h:84
Internal structure for a hash map.
Definition hash_map.h:51
size_t bucket_count
The number of buckets.
Definition hash_map.h:63
struct cx_hash_map_element_s ** buckets
The buckets of this map, each containing a linked list of elements.
Definition hash_map.h:59
struct cx_map_s base
Base structure for maps.
Definition hash_map.h:55
Structure for the UCX map.
Definition map.h:61