# std::future<T>::~future

> C++ Atlas: `cppatlas.com/w/cpp/thread/future/~future` | Source: https://en.cppreference.com/w/cpp/thread/future/~future | Domain: Concurrency support | Standards: C++11, C++14

Releases any shared state. This means:

## Official Specification Summary (cppreference)

```cpp
~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.

(since C++14):

- 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`.
  - The shared state is not yet ready.
  - The current object was the last reference to the shared state.

---
Attribution: content from https://en.cppreference.com/w/cpp/thread/future/~future (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.