首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com