196 * @param fnc the copy function or <code>NULL</code> if the pointer address |
196 * @param fnc the copy function or <code>NULL</code> if the pointer address |
197 * shall be copied |
197 * shall be copied |
198 * @param data additional data for the copy function |
198 * @param data additional data for the copy function |
199 * @return 0 on success or a non-zero value on memory allocation errors |
199 * @return 0 on success or a non-zero value on memory allocation errors |
200 */ |
200 */ |
201 int ucx_map_copy(UcxMap *restrict from, UcxMap *restrict to, |
201 int ucx_map_copy(UcxMap *from, UcxMap *to, copy_func fnc, void *data); |
202 copy_func fnc, void *data); |
|
203 |
202 |
204 /** |
203 /** |
205 * Clones the map and rehashes if necessary. |
204 * Clones the map and rehashes if necessary. |
206 * |
205 * |
207 * <b>Note:</b> In contrast to ucx_map_rehash() the load factor is irrelevant. |
206 * <b>Note:</b> In contrast to ucx_map_rehash() the load factor is irrelevant. |