std::promise<R>::get_future

Returns a future object associated with the same shared state as *this.

# Declarations

std::future<R> get_future();

(since C++11)

# Return value

A future referring to the shared state of *this.