# std::experimental::any::~any

> C++ Atlas: `cppatlas.com/w/cpp/experimental/any/~any` | Source: https://en.cppreference.com/w/cpp/experimental/any/~any | Domain: Technical specifications

Destroys the contained object, if any, as if by a call to clear().

## Official Specification Summary (cppreference)

```cpp
~any(); // (library fundamentals TS)
```

Destroys the contained object, if any, as if by a call to `clear()`.

### See also

- [`clear`](https://en.cppreference.com/w/cpp/experimental/any/clear): destroys contained object (public member function)

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