6 #ifndef SL_LOG_PREDICATES_HPP
7 #define SL_LOG_PREDICATES_HPP
23 template <std::equality_comparable T>
32 template <std::equality_comparable_with<T> U>
45 template <std::equality_comparable T>
54 template <std::equality_comparable_with<T> U>
67 template <std::totally_ordered T>
71 constexpr
explicit Less(T to) :
76 template <std::totally_ordered_with<T> U>
89 template <std::totally_ordered T>
98 template <std::totally_ordered_with<T> U>
111 template <std::totally_ordered T>
116 m_To{ std::move(to) }
120 template <std::totally_ordered_with<T> U>
123 return other <= m_To;
133 template <std::totally_ordered T>
138 m_To{ std::move(to) }
142 template <std::totally_ordered_with<T> U>
145 return other >= m_To;
155 template <std::totally_ordered T>
160 m_Low{ std::min(one, two) },
161 m_High{ std::max(two, one) }
165 template <std::totally_ordered_with<T> U>
168 return m_Low < other && other < m_High;
179 template <std::totally_ordered T>
184 m_Low{ std::min(one, two) },
185 m_High{ std::max(two, one) }
189 template <std::totally_ordered_with<T> U>
192 return m_Low <= other && other <= m_High;
Compares less-equality-ordering with high and greater-equality-ordering with low constant at invocati...
Definition: Predicates.hpp:181
constexpr bool operator()(const U &other) const
Definition: Predicates.hpp:190
constexpr BetweenEquals(T one, T two)
Definition: Predicates.hpp:183
Compares less-ordering with high and greater-ordering with low constant at invocation.
Definition: Predicates.hpp:157
constexpr Between(T one, T two)
Definition: Predicates.hpp:159
constexpr bool operator()(const U &other) const
Definition: Predicates.hpp:166
Compares equality with constant at invocation.
Definition: Predicates.hpp:25
constexpr Equals(T to)
Definition: Predicates.hpp:27
constexpr bool operator()(const U &other) const
Definition: Predicates.hpp:33
Compares greater-equality-ordering with constant at invocation.
Definition: Predicates.hpp:135
constexpr bool operator()(const U &other) const
Definition: Predicates.hpp:143
constexpr GreaterEquals(T to)
Definition: Predicates.hpp:137
Compares greater-ordering with constant at invocation.
Definition: Predicates.hpp:91
constexpr Greater(T to)
Definition: Predicates.hpp:93
constexpr bool operator()(const U &other) const
Definition: Predicates.hpp:99
Compares less-equality-ordering with constant at invocation.
Definition: Predicates.hpp:113
constexpr bool operator()(const U &other) const
Definition: Predicates.hpp:121
constexpr LessEquals(T to)
Definition: Predicates.hpp:115
Compares less-ordering with constant at invocation.
Definition: Predicates.hpp:69
constexpr Less(T to)
Definition: Predicates.hpp:71
constexpr bool operator()(const U &other) const
Definition: Predicates.hpp:77
Compares non-equality with constant at invocation.
Definition: Predicates.hpp:47
constexpr bool operator()(const U &other) const
Definition: Predicates.hpp:55
constexpr NotEquals(T to)
Definition: Predicates.hpp:49
Definition: BasicSink.hpp:22