[#beman-optional-make_optional-00] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::make_optional :relfileprefix: ../../ :mrdocs: Creates an optional<T> constructing the value in‐place from the given arguments. == Synopsis Declared in `<beman/optional/optional.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename... Args> constexpr xref:beman/optional/optional-03.adoc[optional<T>] make_optional(Args&&... args) noexcept(/* see-below */) requires std::is_constructible_v<T, Args...>; ---- == Exception specification This function is potentially-throwing unless `std::is_nothrow_constructible_v<T, Args...>`. == Return Value An engaged optional<T> holding the in‐place constructed value. == Parameters [cols="1,4"] |=== | Name| Description | *args* | The arguments forwarded to the constructor of `T.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#