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