Function apply

Synopsis

#include <lib/inc/drogon/utils/apply.h>

template <typename F, typename Tuple>
constexpr decltype(auto) apply(F &&f, Tuple &&t)

Description

No description yet.

Source

Lines 35-43 in lib/inc/drogon/utils/apply.h.

template <typename F, typename Tuple>
constexpr decltype(auto) apply(F &&f, Tuple &&t)
{
    return apply_impl(
        std::forward<F>(f),
        std::forward<Tuple>(t),
        std::make_index_sequence<
            std::tuple_size<std::remove_reference_t<Tuple> >::value>{});
}





Add Discussion as Guest

Log in