std::future::future
科技促进发展::未来:未来
future( | (1) | (since C++11) |
---|---|---|
future( future&& other | (2) | (since C++11) |
future( const future& other ) = delete; | (3) | (since C++11) |
构造一个std::future
对象。
1%29默认构造函数。构造一个std::future
没有共享状态。建造后,valid()
== false
...
2%29移动构造函数。构造一个std::future
的共享状态other
使用移动语义。建造后,other.valid() == false
...
3%29std::future
不是CopyConstructible
...
参数
other | - | another std::future to acquire shared state from |
---|
例外
1-2%29
noexcept
规格:
noexcept
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。