tmp/tmpsyzpx7wx/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
#### Constructors
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<class U>
|
| 5 |
constexpr reference_wrapper(U&& u) noexcept(see below);
|
| 6 |
```
|
|
@@ -17,11 +17,11 @@ void FUN(T&&) = delete;
|
|
| 17 |
|
| 18 |
*Effects:* Creates a variable `r` as if by `T& r = std::forward<U>(u)`,
|
| 19 |
then constructs a `reference_wrapper` object that stores a reference to
|
| 20 |
`r`.
|
| 21 |
|
| 22 |
-
*Remarks:* The
|
| 23 |
`noexcept(`*`FUN`*`(declval<U>()))`.
|
| 24 |
|
| 25 |
``` cpp
|
| 26 |
constexpr reference_wrapper(const reference_wrapper& x) noexcept;
|
| 27 |
```
|
|
|
|
| 1 |
+
#### Constructors <a id="refwrap.const">[[refwrap.const]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<class U>
|
| 5 |
constexpr reference_wrapper(U&& u) noexcept(see below);
|
| 6 |
```
|
|
|
|
| 17 |
|
| 18 |
*Effects:* Creates a variable `r` as if by `T& r = std::forward<U>(u)`,
|
| 19 |
then constructs a `reference_wrapper` object that stores a reference to
|
| 20 |
`r`.
|
| 21 |
|
| 22 |
+
*Remarks:* The exception specification is equivalent to
|
| 23 |
`noexcept(`*`FUN`*`(declval<U>()))`.
|
| 24 |
|
| 25 |
``` cpp
|
| 26 |
constexpr reference_wrapper(const reference_wrapper& x) noexcept;
|
| 27 |
```
|