Note: It is possible to have interruptible iterations, see documentation
for mixin of IteratorClass
See also: BucketSet.Iterator, MapIterator.IteratorClass
Notes:
- During iteration it is forbidden to call clear() or redistribute() or
remove map elements. If elements are added, the iteration may or may
not include these elements.
- If K is a static array, the iteration variable is a dynamic array of
the same base type and slices the key of the element in the map.
(The reason is that static array 'ref' parameters are forbidden in D.)
In this case DO NOT modify the key in any way!
- It is not recommended to do a 'ref' iteration over the keys. If you do
it anyway, DO NOT modify the key in-place!
'foreach' iteration over set.
Note: It is possible to have interruptible iterations, see documentation for mixin of IteratorClass
See also: BucketSet.Iterator, MapIterator.IteratorClass
Notes: - During iteration it is forbidden to call clear() or redistribute() or remove map elements. If elements are added, the iteration may or may not include these elements. - If K is a static array, the iteration variable is a dynamic array of the same base type and slices the key of the element in the map. (The reason is that static array 'ref' parameters are forbidden in D.) In this case DO NOT modify the key in any way! - It is not recommended to do a 'ref' iteration over the keys. If you do it anyway, DO NOT modify the key in-place!