shared_future::shared_future Constructor
Constructs a shared_future object.
shared_future() _NOEXCEPT;
shared_future(future<Ty>&& Right) _NOEXCEPT;
shared_future(shared_future&& Right) _NOEXCEPT;
shared_future(const shared_future& Right);
Parameters
- Right
A future or shared_future object.
Remarks
The first constructor constructs a shared_future object that has no associated asynchronous state.
The second and third constructors construct a shared_future object and transfer the associated asynchronous state from Right. Right no longer has an associated asynchronous state.
The fourth constructor constructs a shared_future object that has the same associated asynchronous state as Right.
Requirements
Header: future
Namespace: std