std::experimental::future
From cppreference.com
< cpp | experimental
| Defined in header <experimental/future>
|
||
| template< class T > class future; |
(1) | (concurrency TS) |
| template< class T > class future<T&>; |
(2) | (concurrency TS) |
| template<> class future<void>; |
(3) | (concurrency TS) |
The class template std::experimental::future extends std::future with the following operations:
- an unwrapping constructor from
future<future<T>>; - a member function
is_readyto query whether the associated shared state is ready; and - a member function
thento attach a continuation to the future.
However, there is no interoperation between std::experimental::future and std::future.
Member functions
construct a future object (public member function) | |
| checks if the shared state is ready (public member function) | |
| attaches a continuation to a future (public member function) | |
| moves the future object (public member function) |
Example
| This section is incomplete Reason: no example |
See also
| (concurrency TS) |
a version of std::shared_future enhanced with continuations and other features (class template) |