16 #include <type_traits>
21 namespace seqan3::detail
58 template <
typename unary_predicate_t,
typename... pack_t>
59 requires (std::predicate<unary_predicate_t, pack_t> && ...)
60 constexpr
bool all_of(unary_predicate_t && fn, pack_t &&... args)
62 return (fn(std::forward<pack_t>(args)) && ...);
96 template <
typename unary_function_t,
typename... pack_t>
97 requires (std::invocable<unary_function_t, pack_t> && ...)
98 constexpr
void for_each(unary_function_t && fn, pack_t &&... args)
100 (fn(std::forward<pack_t>(args)), ...);
The <concepts> header from C++20's standard library.
requires requires
The rank_type of the semi-alphabet; defined as the return type of seqan3::to_rank....
Definition: alphabet/concept.hpp:164