13 CxMap *cxHashMapCreateSimple(size_t itemsize); |
13 CxMap *cxHashMapCreateSimple(size_t itemsize); |
14 ``` |
14 ``` |
15 |
15 |
16 The function `cxHashMapCreate()` creates a new map where both the map structure |
16 The function `cxHashMapCreate()` creates a new map where both the map structure |
17 and the contained buckets are allocated by the specified `allocator`. |
17 and the contained buckets are allocated by the specified `allocator`. |
18 The default stdlib allocator is used in `cxHashMapCreateSimple()`. |
18 The [default allocator](allocator.h.md#default-allocator) is used in `cxHashMapCreateSimple()`. |
19 |
19 |
20 The map will store items of size `itemsize`. |
20 The map will store items of size `itemsize`. |
21 You can use the `CX_STORE_POINTERS` macro for `itemsize` to indicate that the map shall store |
21 You can use the `CX_STORE_POINTERS` macro for `itemsize` to indicate that the map shall store |
22 pointers instead of actual items. |
22 pointers instead of actual items. |
23 |
23 |