|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Getting the result | ||||
packaged_task::get_future | ||||
| Execution | ||||
| Non-member functions | ||||
| Helper classes | ||||
(until C++17) | ||||
| Deduction guides(C++17) |
std::future<R> get_future(); | (since C++11) | |
Returns afuture which shares the same shared state as*this.
get_future can be called only once for eachpackaged_task.
(none)
A future which shares the same shared state as*this.
std::future_error on the following error conditions:
get_future. The error category is set tofuture_already_retrieved.