docs/Writerside/topics/map.h.md

changeset 1318
12fa1d37fe48
parent 1298
0597f1f20ea9
equal deleted inserted replaced
1317:eeb2fc3850e2 1318:12fa1d37fe48
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

mercurial