[variant.dtor]

# 22 General utilities library [[utilities]](./#utilities)

## 22.6 Variants [[variant]](variant#dtor)

### 22.6.3 Class template variant [[variant.variant]](variant.variant#variant.dtor)

#### 22.6.3.3 Destructor [variant.dtor]

[ð](#lib:variant,destructor)

`constexpr ~variant();
`

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L6043)

*Effects*: If valueless_by_exception() is false,
destroys the currently contained value[.](#1.sentence-1)

[2](#2)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L6048)

*Remarks*: If is_trivially_destructible_v<Ti> is true for all Ti,
then this destructor is trivial[.](#2.sentence-1)
