std::shared_future<T>::operator=
From cppreference.com
< cpp | スレッド | shared_future
| (1) | ||
shared_future& operator=( const shared_future& other ); |
(C++11以降) (C++17まで) |
|
| shared_future& operator=( const shared_future& other ) noexcept; |
(C++17以降) | |
| shared_future& operator=( shared_future&& other ) noexcept; |
(2) | (C++11以降) |
別のshared_futureの内容を代入します。
1) 共有状態を解放し、*this に other の内容を代入します。代入後、this->valid() == other.valid() となります。
2) 共有状態を解放し、*this に other の内容をムーブ代入します。代入後、other.valid() == false となり、代入前の other.valid() と同じ値が this->valid() で返されます。
[編集] パラメータ
| その他 | - | *this に状態を転送する std::shared_future |
[編集] 戻り値
*this