1179:ca4c6f590a08 | 1180:4c3a69b9723a |
---|---|
83 * @return a pointer to the new hash map | 83 * @return a pointer to the new hash map |
84 */ | 84 */ |
85 cx_attr_nodiscard | 85 cx_attr_nodiscard |
86 cx_attr_malloc | 86 cx_attr_malloc |
87 cx_attr_dealloc(cxMapFree, 1) | 87 cx_attr_dealloc(cxMapFree, 1) |
88 cx_attr_export | |
88 CxMap *cxHashMapCreate( | 89 CxMap *cxHashMapCreate( |
89 const CxAllocator *allocator, | 90 const CxAllocator *allocator, |
90 size_t itemsize, | 91 size_t itemsize, |
91 size_t buckets | 92 size_t buckets |
92 ); | 93 ); |
124 * @param map the map to rehash | 125 * @param map the map to rehash |
125 * @retval zero success | 126 * @retval zero success |
126 * @retval non-zero if a memory allocation error occurred | 127 * @retval non-zero if a memory allocation error occurred |
127 */ | 128 */ |
128 cx_attr_nonnull | 129 cx_attr_nonnull |
130 cx_attr_export | |
129 int cxMapRehash(CxMap *map); | 131 int cxMapRehash(CxMap *map); |
130 | 132 |
131 | 133 |
132 #ifdef __cplusplus | 134 #ifdef __cplusplus |
133 } // extern "C" | 135 } // extern "C" |