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.
http://en.cppreference.com/w/cpp/utility/any/~any