tmp/tmp66h701a7/{from.md → to.md}
RENAMED
|
@@ -2,16 +2,15 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<class T> void swap(optional<T>& x, optional<T>& y) noexcept(noexcept(x.swap(y)));
|
| 5 |
```
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
*Effects:* Calls `x.swap(y)`.
|
| 8 |
|
| 9 |
-
*Remarks:* This function shall not participate in overload resolution
|
| 10 |
-
unless `is_move_constructible_v<T>` is `true` and `is_swappable_v<T>` is
|
| 11 |
-
`true`.
|
| 12 |
-
|
| 13 |
``` cpp
|
| 14 |
template<class T> constexpr optional<decay_t<T>> make_optional(T&& v);
|
| 15 |
```
|
| 16 |
|
| 17 |
*Returns:* `optional<decay_t<T>>(std::forward<T>(v))`.
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<class T> void swap(optional<T>& x, optional<T>& y) noexcept(noexcept(x.swap(y)));
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Constraints:* `is_move_constructible_v<T>` is `true` and
|
| 8 |
+
`is_swappable_v<T>` is `true`.
|
| 9 |
+
|
| 10 |
*Effects:* Calls `x.swap(y)`.
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
``` cpp
|
| 13 |
template<class T> constexpr optional<decay_t<T>> make_optional(T&& v);
|
| 14 |
```
|
| 15 |
|
| 16 |
*Returns:* `optional<decay_t<T>>(std::forward<T>(v))`.
|