Simple-Utility
v2.3.1
Loading...
Searching...
No Matches
Predicate.hpp
Go to the documentation of this file.
1
// Copyright Dominic Koepke 2019 - 2023.
2
// Distributed under the Boost Software License, Version 1.0.
3
// (See accompanying file LICENSE_1_0.txt or copy at
4
// https://www.boost.org/LICENSE_1_0.txt)
5
6
#ifndef SL_UTILITY_FUNCTIONAL_PREDICATE_HPP
7
#define SL_UTILITY_FUNCTIONAL_PREDICATE_HPP
8
9
#pragma once
10
11
#include "
Simple-Utility/functional/BasicClosure.hpp
"
12
#include "
Simple-Utility/functional/mixins/Conjunction.hpp
"
13
#include "
Simple-Utility/functional/mixins/Disjunction.hpp
"
14
#include "
Simple-Utility/functional/mixins/Equality.hpp
"
15
#include "
Simple-Utility/functional/mixins/InvokePolicies.hpp
"
16
#include "
Simple-Utility/functional/mixins/Negation.hpp
"
17
#include "
Simple-Utility/functional/mixins/Pipe.hpp
"
18
19
namespace
sl::functional
20
{
40
template
<function Fn>
41
using
Predicate
=
BasicClosure
<
42
Fn,
43
PredicateInvokePolicy
,
44
PipeOperator
,
45
EqualityOperator
,
46
ConjunctionOperator
,
47
DisjunctionOperator
,
48
NegationOperator
>;
49
53
}
54
55
#endif
BasicClosure.hpp
Conjunction.hpp
Disjunction.hpp
Equality.hpp
InvokePolicies.hpp
Negation.hpp
Pipe.hpp
sl::functional::BasicClosure
The core class, wrapping one functional object and enabling a variety of composing operators for it.
Definition:
BasicClosure.hpp:112
sl::functional::ConjunctionOperator
Definition:
Conjunction.hpp:41
sl::functional::DisjunctionOperator
Definition:
Disjunction.hpp:41
sl::functional::EqualityOperator
Definition:
Equality.hpp:49
sl::functional::NegationOperator
Definition:
Negation.hpp:21
sl::functional::PipeOperator
Definition:
Pipe.hpp:63
sl::functional::PredicateInvokePolicy
detail::NodiscardInvokePolicy< Derived, detail::PredicateStrategy > PredicateInvokePolicy
CRTP type, enabling all four operator () overloads for derived classes, which are all marked with the...
Definition:
InvokePolicies.hpp:197
sl::functional
Definition:
Arithmetic.hpp:13
Simple-Utility
functional
Predicate.hpp
Generated by
1.9.6