[#absl-StatusOr-emplace-08] = xref:absl.adoc[absl]::xref:absl/StatusOr.adoc[StatusOr]::emplace :relfileprefix: ../../ :mrdocs: `emplace` overloads == Synopses Declared in `<absl/status/statusor.h>` Reconstructs the held value in‐place from the given arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename... Args> T& xref:absl/StatusOr/emplace-01e1.adoc[emplace](Args&&... args); ---- [.small]#xref:absl/StatusOr/emplace-01e1.adoc[_» more..._]# Reconstructs the held value in‐place from an initializer list and args. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename U, typename... Args> requires std::is_constructible_v< T, std::initializer_list<U>&, Args&&...> T& xref:absl/StatusOr/emplace-01e4.adoc[emplace]( std::initializer_list<U> ilist, Args&&... args); ---- [.small]#xref:absl/StatusOr/emplace-01e4.adoc[_» more..._]# == Return Value A reference to the reconstructed value. == Parameters [cols="1,4"] |=== | Name| Description | *args* | The arguments forwarded to the `T` constructor. | *ilist* | The initializer list forwarded to the `T` constructor. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#