ΒΆtemplate <typename F, typename Tuple>
auto apply_tuple(F&& f, Tuple&& t)
    -> decltype(detail::apply_tuple_impl(
        std::forward<F>(f),
        std::forward<Tuple>(t),
        std::make_index_sequence<
            std::tuple_size<typename std::decay<
                Tuple>::type>::value>({})))

Description

Given an input tuple (a1, a2, ..., an), pass the arguments of the tuple variadically to f as if by calling f(a1, a2, ..., an) and return the result.

Declared at: llvm/include/llvm/ADT/STLExtras.h:1529

Templates

F
Tuple

Parameters

F&& f
Tuple&& t