std::experimental::shared_future<T>::operator=
來自 cppreference.com
< cpp | experimental | shared_future
std::experimental::shared_future<T>& operator=( const std::experimental::shared_future<T>& other ); |
(1) | |
std::experimental::shared_future<T>& operator=( std::experimental::shared_future<T>&& other ) noexcept; |
(2) | |
賦值另一個 std::experimental::shared_future
物件的內容。
1) 釋放任何共享狀態,並將 other 的內容賦值給 *this。賦值後,this->valid() == other.valid()。
2) 釋放任何共享狀態,並將 other 的內容移動賦值給 *this。賦值後,other.valid() == false 且 this->valid() 將產生與賦值前 other.valid() 相同的值。
[編輯] 引數
其他 | - | 用於賦值的 std::experimental::shared_future 物件 |
[編輯] 返回值
*this