docs/Writerside/topics/iterator.h.md

branch
docs/3.1
changeset 1143
0559812df10c
parent 1142
9437530176bc
child 1146
151c057faf7c
equal deleted inserted replaced
1142:9437530176bc 1143:0559812df10c
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

mercurial