Namespaces
Variants
Views
Actions

std::promise::operator=

From cppreference.com
< cpp‎ | thread‎ | promise
Revision as of 21:01, 31 May 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)
 
 
promise& operator=( promise&& other );
(1) (since C++11)
promise& operator=( const promise& rhs ) = delete;
(2) (since C++11)

Assigns the contents.

1) Move assignment operator. Assigns the shared state of other using move semantics. other is in valid, but undefined state afterwards.
2) promise is not copy-assignable.

Parameters

other - another promise to acquire the state from

Return value

*this

Exceptions

1)
noexcept specification:  
noexcept