A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/future/packaged_task/~packaged_task/ below:

public member function

<future>

std::packaged_task::~packaged_task

Destroy packaged task

Abandons the shared state (if any) and destroys the packaged_task object.

Note that if other (future) objects are associated to the same shared state, the shared state is itself not destroyed (until all those objects also release it).

If the object is destroyed before its shared state has been made ready (by calling the stored task), the shared state is automatically made ready containing an exception of type future_error (with a broken_promise error condition).



Exception safetyNo-throw guarantee: never throws exceptions.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4