tmp/tmpemyiea06/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Overview <a id="range.iota.overview">[[range.iota.overview]]</a>
|
| 2 |
+
|
| 3 |
+
`iota_view` generates a sequence of elements by repeatedly incrementing
|
| 4 |
+
an initial value.
|
| 5 |
+
|
| 6 |
+
The name `views::iota` denotes a customization point object
|
| 7 |
+
[[customization.point.object]]. Given subexpressions `E` and `F`, the
|
| 8 |
+
expressions `views::iota(E)` and `views::iota(E, F)` are
|
| 9 |
+
expression-equivalent to `iota_view{E}` and `iota_view{E, F}`,
|
| 10 |
+
respectively.
|
| 11 |
+
|
| 12 |
+
[*Example 1*:
|
| 13 |
+
|
| 14 |
+
``` cpp
|
| 15 |
+
for (int i : iota_view{1, 10})
|
| 16 |
+
cout << i << ' '; // prints: 1 2 3 4 5 6 7 8 9
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
— *end example*]
|
| 20 |
+
|