[#bsl-make_optional-0a] = xref:bsl.adoc[bsl]::make_optional :relfileprefix: ../ :mrdocs: Return an `optional` object containing a `t_TYPE` object created by invoking a `bsl::optional` constructor with the specified `rhs` as the constructor argument. If `t_TYPE` uses an allocator, the default allocator will be used for the `optional` object. This function can be called in constant expressions only if `t_TYPE` is not allocator‐aware. == Synopsis Declared in `<bslstl_optional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_TYPE> constexpr xref:bsl/optional-072.adoc[bsl::optional<bsl::decay<t_TYPE>::type>] make_optional(t_TYPE&& rhs); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#