| 482 * @param dst the destination map |
482 * @param dst the destination map |
| 483 * @param src the source map |
483 * @param src the source map |
| 484 * @param clone_func the clone function for the values |
484 * @param clone_func the clone function for the values |
| 485 * @param clone_allocator the allocator that is passed to the clone function |
485 * @param clone_allocator the allocator that is passed to the clone function |
| 486 * @param data optional additional data that is passed to the clone function |
486 * @param data optional additional data that is passed to the clone function |
| 487 * @return the number of elements that have been successfully cloned |
487 * @retval zero when all elements were successfully cloned |
| |
488 * @retval non-zero when an allocation error occurred |
| 488 */ |
489 */ |
| 489 cx_attr_nonnull_arg(1, 2, 3) |
490 cx_attr_nonnull_arg(1, 2, 3) |
| 490 CX_EXPORT size_t cxMapClone(CxMap *dst, const CxMap *src, |
491 CX_EXPORT int cxMapClone(CxMap *dst, const CxMap *src, |
| 491 cx_clone_func clone_func, const CxAllocator *clone_allocator, void *data); |
492 cx_clone_func clone_func, const CxAllocator *clone_allocator, void *data); |
| 492 |
493 |
| 493 #ifdef __cplusplus |
494 #ifdef __cplusplus |
| 494 } // extern "C" |
495 } // extern "C" |
| 495 #endif |
496 #endif |