cpp/thread/jthread/operator=

If still has an associated running thread (i.e. ), calls  followed by. 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 the associated stop-state is also moved, and  no longer represents a thread of execution nor has any stop-state.