docs/Writerside/topics/iterator.h.md

branch
docs/3.1
changeset 1146
151c057faf7c
parent 1143
0559812df10c
equal deleted inserted replaced
1145:1a8fe7b7dd8a 1146:151c057faf7c
1 # Iterators 1 # Iterators
2
3 <warning>
4 Outdated - Rewrite!
5 </warning>
2 6
3 In UCX 3 a new feature has been introduced to write own iterators, that work with the `cx_foreach` macro. 7 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. 8 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. 9 Now, creating an iterator is as simple as creating a `CxIterator` struct and setting the fields in a meaningful way.
6 10

mercurial