cpp / latest / utility / any / ~any.html /

std::any::~any

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

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

See also

destroys contained object
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/utility/any/%7Eany