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.
Contents |
[edit] Member functions
unwrapping constructor from future<future<T>> (public member function) |
|
| checks if the shared state is ready (public member function) |
|
| attaches a continuation to a future (public member function) |
[edit] Example
| This section is incomplete Reason: no example |
[edit] See also
| (concurrency TS)
|
A version of std::shared_future enhanced with continuations and other features (class template) |