std::any::~any - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::any::~any

From cppreference.com
< cpp‎ | utility‎ | any

~any(); |  | (since C++17)

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

### [edit] See also

reset | destroys contained object (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/utility/any/%7Eany&oldid=89629"