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();
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
.