table of contents
other versions
- Tumbleweed 2024.07.05-1.3
- Leap-16.0
- Leap-15.6
std::promise::operator=(3) | C++ Standard Libary | std::promise::operator=(3) |
NAME¶
std::promise::operator= - std::promise::operator=
Synopsis¶
promise& operator=( promise&& other ) noexcept;
(1) (since C++11)
promise& operator=( const promise& rhs ) = delete; (2)
(since C++11)
Assigns the contents.
1) Move assignment operator. First, abandons the shared state (as in
~promise()),
then assigns the shared state of other as if by executing
std::promise(std::move(other)).swap(*this).
2) promise is not copy-assignable.
Parameters¶
other - another promise to acquire the state from
Return value¶
*this
2024.06.10 | http://cppreference.com |