[expected.void.dtor]

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

## 22.8 Expected objects [[expected]](expected#void.dtor)

### 22.8.7 Partial specialization of expected for void types [[expected.void]](expected.void#dtor)

#### 22.8.7.3 Destructor [expected.void.dtor]

[ð](#lib:expected%3cvoid%3e,destructor)

`constexpr ~expected();
`

[1](#1)

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

*Effects*: If has_value() is false, destroys *unex*[.](#1.sentence-1)

[2](#2)

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

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