| Technical Specification | ||||
| Filesystem library(filesystem TS) | ||||
| Library fundamentals(library fundamentals TS) | ||||
| Library fundamentals 2(library fundamentals TS v2) | ||||
| Library fundamentals 3(library fundamentals TS v3) | ||||
| Extensions for parallelism(parallelism TS) | ||||
| Extensions for parallelism 2(parallelism TS v2) | ||||
| Extensions for concurrency(concurrency TS) | ||||
| Extensions for concurrency 2(concurrency TS v2) | ||||
| Concepts(concepts TS) | ||||
| Ranges(ranges TS) | ||||
| Reflection(reflection TS) | ||||
| Mathematical special functions(special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
| std::future extensions | ||||
experimental::shared_future | ||||
| Latches and barriers | ||||
| Atomic smart pointers | ||||
Defined in header <experimental/shared_future> | ||
template<class T>class shared_future; | (1) | (concurrency TS) |
template<class T>class shared_future<T&>; | (2) | (concurrency TS) |
template<> class shared_future<void>; | (3) | (concurrency TS) |
The class templatestd::experimental::shared_future extendsstd::shared_future with the following operations:
future<shared_future<T>>;is_ready to query whether the associated shared state is ready; andthen to attach a continuation to the future.There is no interoperation betweenstd::experimental::shared_future andstd::shared_future.
Contents |
constructs ashared_future(public member function)[edit] | |
| checks if the shared state is ready (public member function)[edit] | |
attaches a continuation to ashared_future(public member function)[edit] | |
| assigns the contents (public member function) |
| destructs the future object (public member function of std::shared_future<T>) | |
Getting the result | |
| returns the result (public member function of std::shared_future<T>)[edit] | |
State | |
| checks if the future has a shared state (public member function of std::shared_future<T>)[edit] | |
| waits for the result to become available (public member function of std::shared_future<T>)[edit] | |
| waits for the result, returns if it is not available for the specified timeout duration (public member function of std::shared_future<T>)[edit] | |
| waits for the result, returns if it is not available until specified time point has been reached (public member function of std::shared_future<T>)[edit] | |
| This section is incomplete Reason: no example |
(concurrency TS) | a version ofstd::future enhanced with continuations and other features (class template)[edit] |