# std::shared_future<T>::~shared_future

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

If *this is the last object referring to the shared state, destroys the shared state. Otherwise does nothing.

## Official Specification Summary (cppreference)

```cpp
~shared_future(); // (since C++11)
```

If `*this` is the last object referring to the shared state, destroys the shared state. Otherwise does nothing.

---
Attribution: content from https://en.cppreference.com/w/cpp/thread/shared_future/~shared_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.