[#beman-optional-make_optional-05]
= xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::make&lowbar;optional
:relfileprefix: ../../
:mrdocs:

Make an optional

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    int = 0,
    class T&gt;
constexpr
xref:beman/optional/optional-03.adoc[optional&lt;std::decay&lowbar;t&lt;T&gt;&gt;]
make&lowbar;optional(T&& t) noexcept(std&colon;&colon;is&lowbar;nothrow&lowbar;constructible&lowbar;v&lt;optional&lt;std&colon;&colon;decay&lowbar;t&lt;T&gt;&gt;, T&gt;)
requires std&colon;&colon;is&lowbar;constructible&lowbar;v&lt;std&colon;&colon;decay&lowbar;t&lt;T&gt;, T&gt;;
----

== Return Value

Optional Objects


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