From Jason Turner

[thread.thread.assign]

Diff to HTML by rtfpessoa

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