[#bsl-optional-072-2constructor-0d3] = xref:bsl.adoc[bsl]::xref:bsl/optional-072.adoc[optional]::optional :relfileprefix: ../../ :mrdocs: Create a disengaged `optional` object. == Synopsis Declared in `<bslstl_optional.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr optional(xref:bsl/nullopt_t.adoc[bsl::nullopt_t] nullopt) noexcept; ---- == Description Create a disengaged `optional` object. Use the currently installed default allocator to supply memory. This constructor can be called in constant expressions only when `t_TYPE` is not allocator‐aware. == Parameters [cols="1,4"] |=== | Name| Description | *nullopt* | disengaged‐optional tag; value is unused |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#