1 # iterator.h |
1 # Iterators |
2 |
2 |
3 In UCX 3 a new feature has been introduced to write own iterators, that work with the `cx_foreach` macro. |
3 In UCX 3 a new feature has been introduced to write own iterators, that work with the `cx_foreach` macro. |
4 In previous UCX releases there were different hard-coded foreach macros for lists and maps that were not customizable. |
4 In previous UCX releases there were different hard-coded foreach macros for lists and maps that were not customizable. |
5 Now, creating an iterator is as simple as creating a `CxIterator` struct and setting the fields in a meaningful way. |
5 Now, creating an iterator is as simple as creating a `CxIterator` struct and setting the fields in a meaningful way. |
6 |
6 |