[#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& == Template Parameters [cols=2] |=== | Name | Description | *Args* | | *U* | |=== == Parameters [cols=2] |=== | Name | Description | *args* | | *il* | |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#