20
General utilities library
[utilities]
20.7
Variants
[variant]
20.7.3
Class template
variant
[variant.variant]
20.7.3.3
Destructor
[variant.dtor]
🔗
~
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
.