29struct function_traits;
31template<
typename Ret,
typename... Args>
34 using return_type = Ret;
35 using args_as_tuple = std::tuple<Args...>;
36 using signature = Ret (Args...);
38 static constexpr std::size_t arity =
sizeof...(Args);
40 template <std::
size_t N>
43 static_assert(N < arity,
"no such parameter index.");
44 using type =
typename std::tuple_element<N, std::tuple<Args...>>::type;
48template<
typename Ret,
typename... Args>
52template <
typename T,
typename Ret,
typename... Args>
56template <
typename T,
typename Ret,
typename... Args>
Seastar API namespace.
Definition: abort_on_ebadf.hh:26
Definition: function_traits.hh:62