[#absl-make_optional-06] = xref:absl.adoc[absl]::make_optional :relfileprefix: ../ :mrdocs: Creates an `optional` holding a copy of the given value. == Synopsis Declared in `<absl/types/optional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename T> constexpr decltype(std::make_optional( std::declval<T>())) make_optional(T&& value); ---- == Return Value An optional holding the forwarded value. == Parameters [cols="1,4"] |=== | Name| Description | *value* | The value to store in the returned optional. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#