Namespaces
Variants
Views
Actions

std::thread::operator=

From cppreference.com
< cpp‎ | thread‎ | thread
Revision as of 18:33, 9 July 2013 by P12bot (Talk | contribs)

 
 
Thread support library
Threads
(C++11)
this_thread namespace
(C++11)
(C++11)
(C++11)
Mutual exclusion
(C++11)
Generic lock management
(C++11)
(C++11)
(C++11)
(C++11)(C++11)(C++11)
(C++11)
(C++11)
Condition variables
(C++11)
Futures
(C++11)
(C++11)
(C++11)
(C++11)
 
 
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