23template <
typename function_t>
24struct function_traits;
44template <
typename return_t,
typename ...args_t>
45struct function_traits<
std::function<return_t(args_t...)>>
48 static constexpr size_t argument_count =
sizeof...(args_t);
56 template <
size_t index>
58 requires (index < argument_count)
65template <
typename function_t>
67struct function_traits<function_t> : function_traits<decltype(std::function{std::declval<function_t>()})>
typename decltype(detail::at< idx, pack_t... >())::type at
Return the type at given index from the type pack.
Definition: traits.hpp:256
The main SeqAn3 namespace.
Definition: cigar_operation_table.hpp:2
SeqAn specific customisations in the standard namespace.
return_t result_type
The return type of the function target.
Definition: function_traits.hpp:51
pack_traits::at< index, args_t... > argument_type_at
The argument type at the given index.
Definition: function_traits.hpp:60
Provides various traits for template packs.