[#bsl-make_optional-0e] = xref:bsl.adoc[bsl]::make_optional :relfileprefix: ../ :mrdocs: Return an `optional` object containing a `t_TYPE` object created by invoking a `bsl::optional` allocator‐extended `in_place_t` constructor with the specified `alloc` as the allocator argument, and specified `args` as constructor arguments. Note that this function will fail to compile if `t_TYPE` doesn't use allocators. == Synopsis Declared in `<bslstl_optional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class t_TYPE, class... t_ARGS> xref:bsl/optional-072.adoc[bsl::optional<t_TYPE>] make_optional( std::allocator_arg_t, bsl::optional<t_TYPE>::allocator_type const& alloc, t_ARGS&&... args); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#