shared_future::shared_future构造函数

构造 shared_future 对象。

shared_future() _NOEXCEPT;
shared_future(future<Ty>&& Right) _NOEXCEPT;
shared_future(shared_future&& Right) _NOEXCEPT;
shared_future(const shared_future& Right);

参数

  • Right
    将来shared_future 对象。

备注

第一个构造函数构造没有 关联的异步模式的 shared_future 对象。

第二个和第三个构造函数构造 shared_future 对象并从 Right调用该关联的异步状态。 Right 不再有一个关联的异步状态。

第四个构造函数构造具有关联的异步状态和 Right相同的 shared_future 对象。

要求

**标头:**将来

**命名空间:**std

请参见

参考

shared_future选件类

<future>