std::thread::operator=

From cppreference.com
< cpp‎ | thread‎ | thread
thread& operator=( thread&& other );
(since C++11)

Assigns the state of other to *this using move semantics.

If *this still has an associated running thread (i.e. joinable() == true), std::terminate() is called.

[edit] Parameters

other - another thread object to assign to this thread object

[edit] Return value

*this

[edit] Exceptions

noexcept specification:  
noexcept