|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
packaged_task::~packaged_task | ||||
| Getting the result | ||||
| Execution | ||||
| Non-member functions | ||||
| Helper classes | ||||
(until C++17) | ||||
| Deduction guides(C++17) |
~packaged_task(); | ||
Abandons the shared state and destroys the stored task object.
As withstd::promise::~promise, if the shared state is abandoned before it was made ready, anstd::future_error exception is stored with the error codestd::future_errc::broken_promise).
(none)
| This section is incomplete Reason: no example |