Namespaces
Variants
Views
Actions

std::thread::operator=

From cppreference.com
< cpp‎ | thread‎ | thread
Revision as of 18:20, 2 November 2012 by P12bot (Talk | contribs)

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.

Parameters

other - another thread object to assign to this thread object

Return value

*this

Exceptions

noexcept specification:  
noexcept