47struct cx_hash_map_element_s;
105#define cxHashMapCreateSimple(itemsize) \
106 cxHashMapCreate(cxDefaultAllocator, itemsize, 0)
#define __attribute__(x)
Removes GNU C attributes where they are not supported.
Definition: common.h:127
CxMap * cxHashMapCreate(CxAllocator const *allocator, size_t itemsize, size_t buckets)
Creates a new hash map with the specified number of buckets.
int cxMapRehash(CxMap *map)
Increases the number of buckets, if necessary.
Interface for map implementations.
Structure holding the data for an allocator.
Definition: allocator.h:86
Internal structure for a hash map.
Definition: hash_map.h:52
size_t bucket_count
The number of buckets.
Definition: hash_map.h:64
struct cx_hash_map_element_s ** buckets
The buckets of this map, each containing a linked list of elements.
Definition: hash_map.h:60
struct cx_map_s base
Base structure for maps.
Definition: hash_map.h:56
Structure for the UCX map.
Definition: map.h:59