future::future 构造函数

构造 future 对象。

future() _NOEXCEPT;
future(
   future&& Other
) _NOEXCEPT;

参数

  • Other
    一个 future 对象。

备注

第一个构造函数没有构造关联异步状态的 future 对象。

第二个构造函数构造 future 对象并从 Other调用该关联异步状态。 Other 不再具有异步关联的状态。

要求

标头: future

命名空间: std

请参见

参考

future 类

<future>