33
Concurrency support library
[thread]
33.4
Threads
[thread.threads]
33.4.3
Class
thread
[thread.thread.class]
33.4.3.5
Assignment
[thread.thread.assign]
🔗
thread
&
operator
=
(
thread
&
&
x
)
noexcept
;
1
#
Effects
: If
joinable
(
)
, invokes
terminate
(
[except.
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
.