future(std::experimental::future<T>&& f) noexcept;
future(const std::experimental::future<T>&) = delete;
future(std::experimental::future<std::experimental::future<T>> && other) noexcept;
1) Default constructor. Constructs an empty
futureobject that does not refer to a shared state.
2) Constructs a
futureobject, transferring the shared state held by
f, if any. After construction, f.valid() is false.
3) Copy constructor is deleted.
future} cannot be copied.
4) Constructs a
futureobject from the shared state referred to by
other. The resulting
futureobject 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
- 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
After this constructor returns, valid() == true and other.valid() == false.
|f||-||another future object to initialize with|
|other||-|| A |
|This section is incomplete|
Reason: no example
 See also
| constructs the future object |
(public member function of