GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::experimental::shared_future(3) C++ Standard Libary std::experimental::shared_future(3)

std::experimental::shared_future - 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_ready to query whether the associated shared state is
ready; and
* a member function then to attach a continuation to the future.


There is no interoperation between std::experimental::shared_future and
std::shared_future.

Member functions


constructor constructs a shared_future
(public member function)
is_ready checks if the shared state is ready
(public member function)
then attaches a continuation to a shared_future
(public member function)
operator= assigns the contents
(public member function)

Members identical to std::shared_future

Member functions


destructor destructs the future object
(public member function of std::shared_future<T>)


get returns the result
(public member function of std::shared_future<T>)


valid checks if the future has a shared state
(public member function of std::shared_future<T>)
wait waits for the result to become available
(public member function of std::shared_future<T>)
waits for the result, returns if it is not available for the specified
wait_for timeout duration
(public member function of std::shared_future<T>)
waits for the result, returns if it is not available until specified
wait_until time point has been reached
(public member function of std::shared_future<T>)


This section is incomplete
Reason: no example


future A version of std::future enhanced with continuations and other
(concurrency TS) features
(class template)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.