tmp/tmp1kqwgmzl/{from.md → to.md}
RENAMED
|
@@ -27,11 +27,11 @@ equivalent to `is_nothrow_default_constructible_v<``T₀``>`.
|
|
| 27 |
constexpr variant(const variant& w);
|
| 28 |
```
|
| 29 |
|
| 30 |
*Effects:* If `w` holds a value, initializes the `variant` to hold the
|
| 31 |
same alternative as `w` and direct-initializes the contained value with
|
| 32 |
-
`
|
| 33 |
`variant` to not hold a value.
|
| 34 |
|
| 35 |
*Throws:* Any exception thrown by direct-initializing any `Tᵢ` for all
|
| 36 |
i.
|
| 37 |
|
|
@@ -46,12 +46,12 @@ constexpr variant(variant&& w) noexcept(see below);
|
|
| 46 |
|
| 47 |
*Constraints:* `is_move_constructible_v<``Tᵢ``>` is `true` for all i.
|
| 48 |
|
| 49 |
*Effects:* If `w` holds a value, initializes the `variant` to hold the
|
| 50 |
same alternative as `w` and direct-initializes the contained value with
|
| 51 |
-
`
|
| 52 |
-
the `variant` to not hold a value.
|
| 53 |
|
| 54 |
*Throws:* Any exception thrown by move-constructing any `Tᵢ` for all i.
|
| 55 |
|
| 56 |
*Remarks:* The exception specification is equivalent to the logical of
|
| 57 |
`is_nothrow_move_constructible_v<``Tᵢ``>` for all i. If
|
|
|
|
| 27 |
constexpr variant(const variant& w);
|
| 28 |
```
|
| 29 |
|
| 30 |
*Effects:* If `w` holds a value, initializes the `variant` to hold the
|
| 31 |
same alternative as `w` and direct-initializes the contained value with
|
| 32 |
+
*`GET`*`<j>(w)`, where `j` is `w.index()`. Otherwise, initializes the
|
| 33 |
`variant` to not hold a value.
|
| 34 |
|
| 35 |
*Throws:* Any exception thrown by direct-initializing any `Tᵢ` for all
|
| 36 |
i.
|
| 37 |
|
|
|
|
| 46 |
|
| 47 |
*Constraints:* `is_move_constructible_v<``Tᵢ``>` is `true` for all i.
|
| 48 |
|
| 49 |
*Effects:* If `w` holds a value, initializes the `variant` to hold the
|
| 50 |
same alternative as `w` and direct-initializes the contained value with
|
| 51 |
+
*`GET`*`<j>(std::move(w))`, where `j` is `w.index()`. Otherwise,
|
| 52 |
+
initializes the `variant` to not hold a value.
|
| 53 |
|
| 54 |
*Throws:* Any exception thrown by move-constructing any `Tᵢ` for all i.
|
| 55 |
|
| 56 |
*Remarks:* The exception specification is equivalent to the logical of
|
| 57 |
`is_nothrow_move_constructible_v<``Tᵢ``>` for all i. If
|