tmp/tmp8u4hpyyt/{from.md → to.md}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
**Table: `optional::swap(optional&)` effects** <a id="optional.swap">[optional.swap]</a>
|
| 2 |
|
| 3 |
| | `*this` contains a value | `*this` does not contain a value |
|
| 4 |
-
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 5 |
-
| `rhs` contains a value | calls `swap(*(*this), *rhs)`
|
| 6 |
-
| `rhs` does not contain a value | initializes the contained value of `rhs`
|
| 7 |
|
|
|
|
| 1 |
**Table: `optional::swap(optional&)` effects** <a id="optional.swap">[optional.swap]</a>
|
| 2 |
|
| 3 |
| | `*this` contains a value | `*this` does not contain a value |
|
| 4 |
+
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| 5 |
+
| `rhs` contains a value | calls `swap(*(*this), *rhs)` | direct-non-list-initializes the contained value of `*this` with `std::move(*rhs)`, followed by `rhs.val->T::~T()`; postcondition is that `*this` contains a value and `rhs` does not contain a value |
|
| 6 |
+
| `rhs` does not contain a value | direct-non-list-initializes the contained value of `rhs` with `std::move(*(*this))`, followed by `val->T::~T()`; postcondition is that `*this` does not contain a value and `rhs` contains a value | no effect |
|
| 7 |
|