std::experimental::shared_future
From cppreference.com
 
 
 < cpp | experimental 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Experimental 
 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)
Extensions for concurrency 
 
 std::future extensions
experimental::shared_future
 Latches and barriers
 Atomic smart pointers
std::experimental::shared_future
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 template std::experimental::shared_future extends std::shared_future  with the following operations:
-  an unwrapping constructor from future<shared_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.
There is no interoperation between std::experimental::shared_future and std::shared_future .
Contents
[edit] Member functions
Member functions
Getting the result
State
 
 waits for the result, returns if it is not available for the specified timeout duration 
(public member function of
(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
(public member function of
std::shared_future<T>) [edit] 
[edit] Example
 This section is incomplete
Reason: no example
Reason: no example
[edit] See also
(concurrency TS)
(class template) [edit]