23 template <
typename function_t>
24 struct function_traits;
44 template <
typename return_t,
typename ...args_t>
45 struct 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)
65 template <typename function_t>
67 struct function_traits<function_t> : function_traits<decltype(std::function{std::declval<function_t>()})>
typename decltype(detail::at< idx >(list_t{}))::type at
Return the type at given index from the type list.
Definition: traits.hpp:260
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
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.