std::packaged_task<R(Args...)>::get_future

Returns a future which shares the same shared state as *this.

# Declarations

std::future<R> get_future();

(since C++11)

# Return value

A future which shares the same shared state as *this.