- std::future - cppreference. com
The class template std::future provides a mechanism to access the result of asynchronous operations: An asynchronous operation (created via std::async, std::packaged_task, or std::promise) can provide a std::future object to the creator of that asynchronous operation The creator of the asynchronous operation can then use a variety of methods to query, wait for, or extract a value from the std
- std::async - cppreference. com
The return type of std::async is std::future<V>, where V is: The call to std::async synchronizes with the call to f, and the completion of f is sequenced before making the shared state ready
- std::shared_future lt;T gt;::shared_future - cppreference. com
1) Default constructor Constructs an empty shared future, that doesn't refer to a shared state, that is valid() == false 2) Constructs a shared future that refers to the same shared state, if any, as other
- std::future lt;T gt;::future - cppreference. com
< cpp | thread | future C++ Compiler support Freestanding and hosted Language Standard library Standard library headers Named requirements Feature test macros (C++20) Language support library Concepts library (C++20) Diagnostics library Memory management library Metaprogramming library (C++11) General utilities library Containers
|