shared_future& operator=( const shared_future& other );
|
(1) | (C++11 起) |
shared_future& operator=( shared_future&& other );
|
(2) | (C++11 起) |
赋值另一 shared_future
的内容。
other
的内容给 *this 。赋值后, this->valid() == other.valid() 。other
的内容给 *this 。赋值后, other.valid() == false 且 this->valid() 将产生与 other.valid() 在赋值前相同的值。other | - | 将转移状态给 *this 的 std::shared_future
|
*this
1) (无)
|
(C++17 前) |
1)
noexcept 规定:
noexcept
|
(C++17 起) |