tmp/tmpkd0vftdy/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Destructor <a id="expected.object.dtor">[[expected.object.dtor]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
constexpr ~expected();
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Effects:* If `has_value()` is `true`, destroys *val*, otherwise
|
| 8 |
+
destroys *unex*.
|
| 9 |
+
|
| 10 |
+
*Remarks:* If `is_trivially_destructible_v<T>` is `true`, and
|
| 11 |
+
`is_trivially_destructible_v<E>` is `true`, then this destructor is a
|
| 12 |
+
trivial destructor.
|
| 13 |
+
|