std::promise<R>::operator=
From cppreference.com
| promise& operator=( promise&& other ) noexcept; |
(1) | (C++11以降) |
| promise& operator=( const promise& rhs ) = delete; |
(2) | (C++11以降) |
内容を代入します。
1) ムーブ代入演算子。まず、共有状態を破棄します(~promise() の場合と同様)。その後、other の共有状態を、std::promise(std::move(other)).swap(*this) を実行した場合と同様に代入します。
2)
promise はコピー代入できません。[編集] パラメータ
| その他 | - | 状態を取得する別の promise |
[編集] 戻り値
*this