std::variant<Types...>::~variant (3) - Linux Manuals
std::variant<Types...>::~variant: std::variant<Types...>::~variant
NAME
std::variant<Types...>::~variant - std::variant<Types...>::~variant
Synopsis
~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...