22
General utilities library
[utilities]
22.6
Variants
[variant]
22.6.3
Class template
variant
[variant.variant]
22.6.3.3
Destructor
[variant.dtor]
🔗
constexpr
~
variant
(
)
;
1
#
Effects
: If
valueless_
by_
exception
(
)
is
false
, destroys the currently contained value
.
2
#
Remarks
: If
is_
trivially_
destructible_
v
<
T
i
>
is
true
for all
T
i
, then this destructor is trivial
.