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

Creates an `optional` holding a copy of the given value&period;

== Synopsis

Declared in `&lt;absl&sol;types&sol;optional&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
constexpr
decltype(std&colon;&colon;make&lowbar;optional(
    std&colon;&colon;declval&lt;T&gt;()))
make&lowbar;optional(T&& value);
----

== Return Value

An optional holding the forwarded value&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| The value to store in the returned optional&period;
|===


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