[#beman-optional-optional-03-2destructor-01]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::&#126;optional
:relfileprefix: ../../../
:mrdocs:

Destructors

== Synopses

Declared in `&lt;beman&sol;optional&sol;optional&period;hpp&gt;`

Destructs the optional&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:beman/optional/optional-03/2destructor-0b.adoc[&#126;optional]()
requires std&colon;&colon;is&lowbar;trivially&lowbar;destructible&lowbar;v&lt;T&gt; = default;
----

[.small]#xref:beman/optional/optional-03/2destructor-0b.adoc[_» more&period;&period;&period;_]#

Destroys the optional and its value if it has one&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:beman/optional/optional-03/2destructor-0e.adoc[&#126;optional]()
requires (!std&colon;&colon;is&lowbar;trivially&lowbar;destructible&lowbar;v&lt;T&gt;);
----

[.small]#xref:beman/optional/optional-03/2destructor-0e.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
