21namespace seqan3::detail
58template <
typename unary_predicate_t,
typename ...pack_t>
60 requires (std::predicate<unary_predicate_t, pack_t> && ...)
62constexpr bool all_of(unary_predicate_t && fn, pack_t && ...args)
64 return (fn(std::forward<pack_t>(args)) && ...);
98template <
typename unary_function_t,
typename ...pack_t>
100 requires (std::invocable<unary_function_t, pack_t> && ...)
102constexpr void for_each(unary_function_t && fn, pack_t && ...args)
104 (fn(std::forward<pack_t>(args)), ...);
The <concepts> header from C++20's standard library.
The <type_traits> header from C++20's standard library.