33
Thread support library
[thread]
33.3
Threads
[thread.threads]
33.3.2
Class
thread
[thread.thread.class]
33.3.2.4
thread
assignment
[thread.thread.assign]
thread& operator=(thread&& x) noexcept;
1
#
Effects:
If
joinable()
, calls
terminate()
.
Otherwise, assigns the state of
x
to
*this
and sets
x
to a default constructed state
.
2
#
Postconditions:
x.get_id() == id()
and
get_id()
returns the value of
x.get_id()
prior to the assignment
.
3
#
Returns:
*this
.