#include <ctoon.h>
A mutable TOON array iterator.
- Warning
- You should not modify the array while iterating over it, but you can use
ctoon_mut_arr_iter_remove() to remove current value.
Example
your_func(val);
if (your_val_is_unused(val)) {
}
}
static ctoon_mut_val * ctoon_mut_arr_iter_next(ctoon_mut_arr_iter *iter)
static ctoon_mut_val * ctoon_mut_arr_iter_remove(ctoon_mut_arr_iter *iter)
static ctoon_mut_arr_iter ctoon_mut_arr_iter_with(ctoon_mut_val *arr)
Definition at line 2482 of file ctoon.h.
◆ arr
the array being iterated
Definition at line 2487 of file ctoon.h.
◆ cur
◆ idx
| size_t ctoon_mut_arr_iter::idx |
next value's index
Definition at line 2483 of file ctoon.h.
◆ max
| size_t ctoon_mut_arr_iter::max |
maximum index (arr.size)
Definition at line 2484 of file ctoon.h.
◆ pre
previous value
Definition at line 2486 of file ctoon.h.
The documentation for this struct was generated from the following file:
- /home/runner/work/ctoon/ctoon/include/ctoon.h