12template<
typename... Types>
37 constexpr bool empty() const noexcept {
46template<
typename... Types>
58 return std::ranges::all_of(this->
predicates,[... args = std::forward<Types>(args)](
const auto & predicate){
59 return predicate(args...);
68template<
typename... Types>
80 return std::ranges::any_of(this->
predicates,[... args = std::forward<Types>(args)] (
const auto & predicate){
81 return predicate(args...);
Definition CompositePredicate.hpp:47
constexpr AllOfPredicate()=default
constexpr AllOfPredicate(Parent::predicate_type &&predicate)
Definition CompositePredicate.hpp:53
constexpr bool operator()(Types... args) const noexcept
Definition CompositePredicate.hpp:57
constexpr AllOfPredicate(Parent::predicate_type predicate)
Definition CompositePredicate.hpp:55
Definition CompositePredicate.hpp:69
constexpr bool operator()(Types... args) const noexcept
Definition CompositePredicate.hpp:79
constexpr AnyOfPredicate(Parent::predicate_type &&predicate)
Definition CompositePredicate.hpp:75
constexpr AnyOfPredicate(Parent::predicate_type predicate)
Definition CompositePredicate.hpp:77
constexpr AnyOfPredicate()=default
Definition CompositePredicate.hpp:13
std::vector< predicate_type > predicates
Definition CompositePredicate.hpp:17
constexpr void add(predicate_type &&predicate)
Definition CompositePredicate.hpp:29
constexpr bool empty() const noexcept
Definition CompositePredicate.hpp:37
constexpr CompositePredicate()=default
constexpr CompositePredicate(predicate_type &&predicate)
Definition CompositePredicate.hpp:19
std::function< bool(Types...)> predicate_type
Definition CompositePredicate.hpp:15
constexpr void add(const predicate_type &predicate)
Definition CompositePredicate.hpp:33
constexpr CompositePredicate(predicate_type predicate)
Definition CompositePredicate.hpp:23
Definition FunctionalConcepts.hpp:42
Definition FunctionalConcepts.hpp:36
Definition AlternativeKeyMap.hpp:4