docs/src/features.md

changeset 834
04c53b3c8378
parent 831
7970eac1c598
equal deleted inserted replaced
833:5c926801f052 834:04c53b3c8378
316 * `index` does not need to be within size of the current array, if `capacity` is specified 316 * `index` does not need to be within size of the current array, if `capacity` is specified
317 * `index` does not even need to be within the capacity of the array, if `reallocator` is specified 317 * `index` does not even need to be within the capacity of the array, if `reallocator` is specified
318 318
319 If you just want to add one single element to an existing array, you can use the macro `cx_array_add()`. 319 If you just want to add one single element to an existing array, you can use the macro `cx_array_add()`.
320 In that case, since the element is added to the end of the array, the `capacity` argument is mandatory. 320 In that case, since the element is added to the end of the array, the `capacity` argument is mandatory.
321 You can use `cx_array_declare()` to declare the necessary fields within a structure and then use the 321 You can use `CX_ARRAY_DECLARE()` to declare the necessary fields within a structure and then use the
322 `cx_array_simple_*()` convenience macros to reduce code overhead. 322 `cx_array_simple_*()` convenience macros to reduce code overhead.
323 323
324 ## Map 324 ## Map
325 325
326 *Header file:* [map.h](api/map_8h.html) 326 *Header file:* [map.h](api/map_8h.html)

mercurial