shared_future();
|
(1) | (C++11 起) |
shared_future( const shared_future& other );
|
(2) | (C++11 起) |
shared_future( std::future<T>&& other );
|
(3) | (C++11 起) |
shared_future( shared_future&& other );
|
(4) | (C++11 起) |
构造新的 shared_future
。
other
指代同一共享状态的 shared_future ,若有共享状态。other
所保有的共享状态给 *this 。构造后, other.valid() == false 且 this->valid() 返回与 other.valid() 在构造前会返回者相同的值。other | - | 用以初始化的另一期货对象 |
2) (无)
|
(C++17 前) |
2)
noexcept 规定:
noexcept
|
(C++17 起) |