cpp/thread/thread/operator=

If still has an associated running thread (i.e. ), calls. Otherwise, assigns the state of to  and sets  to a default constructed state.

After this call, is equal to the value of  prior to the call, and  no longer represents a thread of execution.