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