tmp/tmpc_etdffn/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,19 @@
|
|
| 1 |
#### Overview <a id="range.single.overview">[[range.single.overview]]</a>
|
| 2 |
|
| 3 |
-
`single_view` produces a
|
| 4 |
specified value.
|
| 5 |
|
| 6 |
The name `views::single` denotes a customization point object
|
| 7 |
[[customization.point.object]]. Given a subexpression `E`, the
|
| 8 |
expression `views::single(E)` is expression-equivalent to
|
| 9 |
-
`single_view
|
| 10 |
|
| 11 |
[*Example 1*:
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
-
|
| 15 |
-
for (int i : s)
|
| 16 |
cout << i; // prints 4
|
| 17 |
```
|
| 18 |
|
| 19 |
— *end example*]
|
| 20 |
|
|
|
|
| 1 |
#### Overview <a id="range.single.overview">[[range.single.overview]]</a>
|
| 2 |
|
| 3 |
+
`single_view` produces a view that contains exactly one element of a
|
| 4 |
specified value.
|
| 5 |
|
| 6 |
The name `views::single` denotes a customization point object
|
| 7 |
[[customization.point.object]]. Given a subexpression `E`, the
|
| 8 |
expression `views::single(E)` is expression-equivalent to
|
| 9 |
+
`single_view<decay_t<decltype((E))>>(E)`.
|
| 10 |
|
| 11 |
[*Example 1*:
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
+
for (int i : views::single(4))
|
|
|
|
| 15 |
cout << i; // prints 4
|
| 16 |
```
|
| 17 |
|
| 18 |
— *end example*]
|
| 19 |
|