128 */ |
128 */ |
129 UcxMap *ucx_map_new(size_t size); |
129 UcxMap *ucx_map_new(size_t size); |
130 |
130 |
131 /** |
131 /** |
132 * Creates a new hash map with the specified size using an UcxAllocator. |
132 * Creates a new hash map with the specified size using an UcxAllocator. |
|
133 * @param allocator the allocator to use |
133 * @param size the size of the hash map |
134 * @param size the size of the hash map |
134 * @param allocator the allocator to use |
|
135 * @return a pointer to the new hash map |
135 * @return a pointer to the new hash map |
136 */ |
136 */ |
137 UcxMap *ucx_map_new_a(size_t size, UcxAllocator *allocator); |
137 UcxMap *ucx_map_new_a(UcxAllocator *allocator, size_t size); |
138 |
138 |
139 /** |
139 /** |
140 * Frees a hash map. |
140 * Frees a hash map. |
141 * |
141 * |
142 * <b>Note:</b> the contents are <b>not</b> freed, use an UcxMempool for that |
142 * <b>Note:</b> the contents are <b>not</b> freed, use an UcxMempool for that |