SysTutorials

Linux Manual Pages › Section 3

stdvariantvariant(3)

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…