std::any::~any
From cppreference.com
C++
Utilities library
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::any
| ~any(); |
(since C++17) | |
Destroys the contained object, if any, as if by a call to reset().
[edit] Example
Run this code
Output:
X::X() X::X(const X&) X::~X() Leaving main()... X::~X()
[edit] See also
| destroys contained object (public member function) [edit] |