46struct cx_hash_map_element_s;
88 size_t itemsize,
size_t buckets);
104#define cxHashMapCreateSimple(itemsize) cxHashMapCreate(NULL, itemsize, 0)
struct cx_allocator_s CxAllocator
High-Level type alias for the allocator type.
Definition allocator.h:84
#define cx_attr_nonnull
All pointer arguments must be non-NULL.
Definition common.h:141
#define CX_EXPORT
Only used for building Windows DLLs.
Definition common.h:278
#define cx_attr_nodiscard
Warn about discarded return value.
Definition common.h:256
#define cx_attr_malloc
The attributed function always returns freshly allocated memory.
Definition common.h:156
#define cx_attr_dealloc(...)
Not supported in clang.
Definition common.h:172
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.
struct cx_map_s CxMap
Type for the UCX map.
Definition map.h:54
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:66