构造 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 对象。
要求
标头: future
命名空间: std