std::variant::~variant

From cppreference.com
< cpplrm; | utilitylrm; | 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...