tmp/tmph2hhll7u/{from.md → to.md}
RENAMED
|
@@ -2,12 +2,13 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
thread& operator=(thread&& x) noexcept;
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Effects:* If `joinable()`,
|
| 8 |
-
state of `x` to `*this` and sets `x` to a default
|
|
|
|
| 9 |
|
| 10 |
*Ensures:* `x.get_id() == id()` and `get_id()` returns the value of
|
| 11 |
`x.get_id()` prior to the assignment.
|
| 12 |
|
| 13 |
*Returns:* `*this`.
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
thread& operator=(thread&& x) noexcept;
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* If `joinable()`, invokes `terminate` [[except.terminate]].
|
| 8 |
+
Otherwise, assigns the state of `x` to `*this` and sets `x` to a default
|
| 9 |
+
constructed state.
|
| 10 |
|
| 11 |
*Ensures:* `x.get_id() == id()` and `get_id()` returns the value of
|
| 12 |
`x.get_id()` prior to the assignment.
|
| 13 |
|
| 14 |
*Returns:* `*this`.
|