163 CxListComparator comparator, |
163 CxListComparator comparator, |
164 size_t item_size, |
164 size_t item_size, |
165 size_t initial_capacity |
165 size_t initial_capacity |
166 ) __attribute__((__nonnull__)); |
166 ) __attribute__((__nonnull__)); |
167 |
167 |
|
168 /** |
|
169 * Allocates an array list for storing elements with \p item_size bytes each. |
|
170 * |
|
171 * 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 |
|
173 * set it immediately after creation or use cxArrayListCreate(). |
|
174 * |
|
175 * @param item_size the size of each element in bytes |
|
176 * @param initial_capacity the initial number of elements the array can store |
|
177 * @return the created list |
|
178 */ |
|
179 CxList *cxArrayListCreateSimple( |
|
180 size_t item_size, |
|
181 size_t initial_capacity |
|
182 ); |
|
183 |
168 |
184 |
169 #ifdef __cplusplus |
185 #ifdef __cplusplus |
170 } // extern "C" |
186 } // extern "C" |
171 #endif |
187 #endif |
172 |
188 |