std::any::~any

From cppreference.com
< cpp‎ | utility‎ | any
 
 
 
std::any
Member functions
any::~any
Modifiers
Observers
Non-member functions
 
~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)