22
General utilities library
[utilities]
22.5
Optional objects
[optional]
22.5.3
Class template
optional
[optional.optional]
22.5.3.3
Destructor
[optional.dtor]
🔗
constexpr
~
optional
(
)
;
1
#
Effects
: If
is_
trivially_
destructible_
v
<
T
>
!
=
true
and
*
this
contains a value, calls
val
-
>
T
::
~
T
(
)
2
#
Remarks
: If
is_
trivially_
destructible_
v
<
T
>
is
true
, then this destructor is trivial
.