docs/Writerside/topics/iterator.h.md

branch
docs/3.1
changeset 1142
9437530176bc
parent 1141
a06a2d27c043
child 1143
0559812df10c
equal deleted inserted replaced
1141:a06a2d27c043 1142:9437530176bc
17 For this purpose, most collections allow the creation of a _mutating_ iterator. 17 For this purpose, most collections allow the creation of a _mutating_ iterator.
18 The only differences are, that the `mutating` flag is `true` and the `src_handle` is not const. 18 The only differences are, that the `mutating` flag is `true` and the `src_handle` is not const.
19 On mutating iterators it is allowed to call the `cxFlagForRemoval()` function, which instructs the iterator to remove 19 On mutating iterators it is allowed to call the `cxFlagForRemoval()` function, which instructs the iterator to remove
20 the current element from the collection on the next call to `cxIteratorNext()` and clear the flag afterward. 20 the current element from the collection on the next call to `cxIteratorNext()` and clear the flag afterward.
21 If you are implementing your own iterator, it is up to you to implement this behavior. 21 If you are implementing your own iterator, it is up to you to implement this behavior.
22
23 ## Undocumented Symbols (TODO)
24 ### cxIterator
25 ### cxIteratorPtr
26 ### cxMutIterator
27 ### cxMutIteratorPtr

mercurial