std::thread::operator=

From Cppreference

Jump to: navigation, search
thread& operator=( thread&& other );
(C++11 feature)

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

  (C++11 feature)