[#absl-make_from_tuple] = xref:absl.adoc[absl]::make_from_tuple :relfileprefix: ../ :mrdocs: Construct an object of a type from the elements of a tuple. == Synopsis Declared in `<absl/utility/utility.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class Tuple> [[deprecated, nodiscard]] constexpr decltype(std::make_from_tuple<T>(std::declval<Tuple>())) make_from_tuple(Tuple&& arg) noexcept(/* see-below */); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Exception specification This function is potentially-throwing unless `noexcept(std::make_from_tuple<T>(std::declval<Tuple>()))`. == Return Value The constructed object. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *arg* | The tuple whose elements are used as constructor arguments. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#