150 ) __attribute__((__nonnull__)); |
150 ) __attribute__((__nonnull__)); |
151 |
151 |
152 /** |
152 /** |
153 * Allocates an array list for storing elements with \p item_size bytes each. |
153 * Allocates an array list for storing elements with \p item_size bytes each. |
154 * |
154 * |
|
155 * If \p item_size is CX_STORE_POINTERS, the created list will be created as if |
|
156 * cxListStorePointers() was called immediately after creation. |
|
157 * |
155 * @param allocator the allocator for allocating the list memory |
158 * @param allocator the allocator for allocating the list memory |
156 * @param comparator the comparator for the elements |
159 * @param comparator the comparator for the elements |
157 * @param item_size the size of each element in bytes |
160 * @param item_size the size of each element in bytes |
158 * @param initial_capacity the initial number of elements the array can store |
161 * @param initial_capacity the initial number of elements the array can store |
159 * @return the created list |
162 * @return the created list |
170 * |
173 * |
171 * The list will use the cxDefaultAllocator and \em NO compare function. |
174 * The list will use the cxDefaultAllocator and \em NO compare function. |
172 * If you want to call functions that need a compare function, you have to |
175 * If you want to call functions that need a compare function, you have to |
173 * set it immediately after creation or use cxArrayListCreate(). |
176 * set it immediately after creation or use cxArrayListCreate(). |
174 * |
177 * |
|
178 * If \p item_size is CX_STORE_POINTERS, the created list will be created as if |
|
179 * cxListStorePointers() was called immediately after creation. |
|
180 * |
175 * @param item_size the size of each element in bytes |
181 * @param item_size the size of each element in bytes |
176 * @param initial_capacity the initial number of elements the array can store |
182 * @param initial_capacity the initial number of elements the array can store |
177 * @return the created list |
183 * @return the created list |
178 */ |
184 */ |
179 CxList *cxArrayListCreateSimple( |
185 CxList *cxArrayListCreateSimple( |