[#beman-optional-optional-03-emplace-07] = xref:beman.adoc[beman]::xref:beman/optional.adoc[optional]::xref:beman/optional/optional-03.adoc[optional]::emplace :relfileprefix: ../../../ :mrdocs: `emplace` overloads == Synopses Declared in `<beman/optional/optional.hpp>` Constructs the value in‐place, destroying the current one if there [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... Args> constexpr T& xref:beman/optional/optional-03/emplace-04.adoc[emplace](Args&&... args); ---- [.small]#xref:beman/optional/optional-03/emplace-04.adoc[_» more..._]# Constructs the value in‐place using the given arguments, destroying the current one if there [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class U, class... Args> constexpr T& xref:beman/optional/optional-03/emplace-08.adoc[emplace]( std::initializer_list<U> il, Args&&... args); ---- [.small]#xref:beman/optional/optional-03/emplace-08.adoc[_» more..._]# == Return Value T& == Parameters [cols="1,4"] |=== |Name|Description | *args* | The argument list to use in emplacement construction. | *il* | The initializer list to use in emplacement construction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#