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。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

