58template <
typename unary_predicate_t,
typename... pack_t>
59 requires (std::predicate<unary_predicate_t, pack_t> && ...)
60constexpr bool all_of(unary_predicate_t && fn, pack_t &&... args)
62 return (fn(std::forward<pack_t>(args)) && ...);
96template <
typename unary_function_t,
typename... pack_t>
97 requires (std::invocable<unary_function_t, pack_t> && ...)
98constexpr void for_each(unary_function_t && fn, pack_t &&... args)
100 (fn(std::forward<pack_t>(args)), ...);
constexpr bool all_of(unary_predicate_t &&fn)
Tests whether a given predicate evaluates to true for each type in a seqan3::type_list.
Definition: type_list_algorithm.hpp:110
constexpr void for_each(unary_function_t &&fn)
Applies a function element wise to all types of a type list.
Definition: type_list_algorithm.hpp:160
The internal SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29