Retrieve a std::future
instance for the asynchronous result associated with *this.
std::future<ResultType> get_future();
- Preconditions:
*thishas an associated asynchronous result.- Returns:
A
std::futureinstance for the asynchronous result associated with*this.- Throws:
An exception of type
std::future_errorwith an error code ofstd::future_errc::future_already_retrievedif astd::futurehas already been obtained for this asynchronous result through a prior call toget_future().
Header
#include <future>