90 */ |
90 */ |
91 UcxMap *ucx_map_new(size_t size); |
91 UcxMap *ucx_map_new(size_t size); |
92 |
92 |
93 /** |
93 /** |
94 * Creates a new hash map with the specified size using an UcxAllocator. |
94 * Creates a new hash map with the specified size using an UcxAllocator. |
|
95 * @param allocator the allocator to use |
95 * @param size the size of the hash map |
96 * @param size the size of the hash map |
96 * @param allocator the allocator to use |
|
97 * @return a pointer to the new hash map |
97 * @return a pointer to the new hash map |
98 */ |
98 */ |
99 UcxMap *ucx_map_new_a(size_t size, UcxAllocator *allocator); |
99 UcxMap *ucx_map_new_a(UcxAllocator *allocator, size_t size); |
100 |
100 |
101 /** |
101 /** |
102 * Frees a hash map. |
102 * Frees a hash map. |
103 * |
103 * |
104 * <b>Note:</b> the contents are <b>not</b> freed, use an UcxMempool for that |
104 * <b>Note:</b> the contents are <b>not</b> freed, use an UcxMempool for that |