absl::make_from_tuple

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

NameDescription
argThe tuple whose elements are used as constructor arguments.