Construct an object of a type from the elements of a tuple.

Synopsis

Declared in <absl/utility/utility.h>

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

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 should not be discarded.

Parameters

Name

Description

arg

The tuple whose elements are used as constructor arguments.

Created with MrDocs