4#ifndef TETL_ALGORITHM_ALL_OF_HPP
5#define TETL_ALGORITHM_ALL_OF_HPP
7#include <etl/_algorithm/find_if_not.hpp>
15template <
typename InputIt,
typename Predicate>
16[[nodiscard]]
constexpr auto all_of(InputIt first, InputIt last, Predicate p) ->
bool
18 return etl::find_if_not(first, last, p) == last;
constexpr auto all_of(InputIt first, InputIt last, Predicate p) -> bool
Checks if unary predicate p returns true for all elements in the range [first, last).
Definition all_of.hpp:16
Definition adjacent_find.hpp:9