docs/src/features.md

changeset 831
7970eac1c598
parent 819
5da2ead43077
child 834
04c53b3c8378
equal deleted inserted replaced
830:c4dae6fe6d5b 831:7970eac1c598
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
322 `cx_array_simple_*()` convenience macros to reduce code overhead.
321 323
322 ## Map 324 ## Map
323 325
324 *Header file:* [map.h](api/map_8h.html) 326 *Header file:* [map.h](api/map_8h.html)
325 327

mercurial