std::experimental::future::future
From cppreference.com
< cpp | experimental | future
future(future<future<T>> && other); |
||
Constructs a future
object from the shared state referred to by other
. The resulting future
object becomes ready when one of the following happens:
- other and other.get() are both ready. The value or exception from other.get() is stored in the shared state associated with the resulting
future
object. - other is ready, but other.get() is invalid. An exception of type std::future_error with an error condition of std::future_errc::broken_promise is stored in the shared state associated with the resulting
future
object.
After this constructor returns, valid() == true and other.valid() == false.
Parameters
other | - | A std::experimental::future object to unwrap
|
Exceptions
noexcept specification:
noexcept
Notes
For other constructors, see the documentation for std::future's constructor.
Example
This section is incomplete Reason: no example |
See also
constructs the future object (public member function of std::future ) |