std::variant<Types...>::~variant
~variant(); | (since C++17) |
If valueless_by_exception is true, does nothing. Otherwise, destroys the currently contained value.
This destructor is trivial if std::is_trivially_destructible_v<T_i>
is true
for all T_i
in Types...
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/utility/variant/~variant