| 428 * @param initial_capacity the initial number of elements the array can store |
428 * @param initial_capacity the initial number of elements the array can store |
| 429 * @return the created list |
429 * @return the created list |
| 430 */ |
430 */ |
| 431 cx_attr_nodiscard |
431 cx_attr_nodiscard |
| 432 cx_attr_malloc |
432 cx_attr_malloc |
| 433 cx_attr_dealloc(cxListDestroy, 1) |
433 cx_attr_dealloc(cxListFree, 1) |
| 434 CxList *cxArrayListCreate( |
434 CxList *cxArrayListCreate( |
| 435 const CxAllocator *allocator, |
435 const CxAllocator *allocator, |
| 436 cx_compare_func comparator, |
436 cx_compare_func comparator, |
| 437 size_t elem_size, |
437 size_t elem_size, |
| 438 size_t initial_capacity |
438 size_t initial_capacity |