Scroll to navigation

std::future::~future(3) C++ Standard Libary std::future::~future(3)

NAME

std::future::~future - std::future::~future

Synopsis

~future(); (since C++11)

Releases any shared state. This means:


* If the current object holds the last reference to its shared state, the shared state
is destroyed.
* The current object gives up its reference to its shared state.


* These actions will not block for the shared state to become ready,
except that they may block if all following conditions are satisfied:
* The shared state was created by a call to std::async. (since C++14)
* The shared state is not yet ready.
* The current object was the last reference to the shared state.

2026.11.10 http://cppreference.com