19 General utilities library [utilities]

19.7 Variants [variant]

19.7.3 Class template variant [variant.variant]

19.7.3.2 Destructor [variant.dtor]

~variant();
Effects: If valueless_­by_­exception() is false, destroys the currently contained value.
Remarks: If is_­trivially_­destructible_­v<> is true for all , then this destructor is trivial.