260 CxMapIterator cxMapIterator(const CxMap *map); |
260 CxMapIterator cxMapIterator(const CxMap *map); |
261 |
261 |
262 CxMapIterator cxMapIteratorKeys(const CxMap *map); |
262 CxMapIterator cxMapIteratorKeys(const CxMap *map); |
263 |
263 |
264 CxMapIterator cxMapIteratorValues(const CxMap *map); |
264 CxMapIterator cxMapIteratorValues(const CxMap *map); |
265 |
265 ``` |
266 CxMapIterator cxMapMutIterator(CxMap *map); |
266 |
267 |
267 The above functions create iterators over the |
268 CxMapIterator cxMapMutIteratorKeys(CxMap *map); |
|
269 |
|
270 CxMapIterator cxMapMutIteratorValues(CxMap *map); |
|
271 ``` |
|
272 |
|
273 The above functions create a ([mutating](iterator.h.md#mutating-iterators)) iterator over the |
|
274 pairs, keys, or values of the specified `map`, respectively. |
268 pairs, keys, or values of the specified `map`, respectively. |
275 |
269 |
276 Iterators over pairs yield elements of type `CxMapEntry*` which is a struct containing a pointer to the `key` and the value, respectively. |
270 Iterators over pairs yield elements of type `CxMapEntry*` which is a struct containing a pointer to the `key` and the value, respectively. |
277 |
271 |
278 Iterators over keys yield elements of type `const CxHashKey*` (cf. [CxHashKey documentation](hash_key.h.md)). |
272 Iterators over keys yield elements of type `const CxHashKey*` (cf. [CxHashKey documentation](hash_key.h.md)). |