20 General utilities library [utilities]

20.7 Variants [variant]

20.7.2 Class template variant [variant.variant]

20.7.2.2 Destructor [variant.dtor]

~variant();

Effects: If valueless_by_exception() is false, destroys the currently contained value.

Remarks: If is_trivially_destructible_v<Ti> == true for all Ti then this destructor shall be a trivial destructor.