16 #ifndef OPENKALMAN_VALUES_FIXED_VALUE_COMPARES_WITH_HPP 17 #define OPENKALMAN_VALUES_FIXED_VALUE_COMPARES_WITH_HPP 28 template<auto N,
unsigned int epsilon_factor>
33 operator() [[nodiscard]] (T&& t)
const 36 if constexpr (epsilon_factor == 0U)
42 if (internal::near<epsilon_factor>(t, n))
return stdex::partial_ordering::equivalent;
49 #if not defined(__cpp_concepts) or not defined(__cpp_impl_three_way_comparison) 50 template<
typename T, auto N, auto comp,
unsigned int epsilon_factor,
typename =
void>
51 struct fixed_value_compares_with_impl : std::false_type {};
53 template<
typename T, auto N, auto comp,
unsigned int epsilon_factor>
54 struct fixed_value_compares_with_impl<T, N, comp, epsilon_factor, std::enable_if_t<
55 stdex::invoke(comp, detail::compare_three_way_near<N, epsilon_factor>{}(fixed_value_of<T>::value))>>
68 template<
typename T, auto N, auto comp = &stdex::is_eq,
unsigned int epsilon_factor = 0U>
69 #if defined(__cpp_concepts) and defined(__cpp_impl_three_way_comparison) Definition: comparison.hpp:104
Obtain the underlying value type associated with a value.
Definition: value_type_of.hpp:32
Definition: fixed_value_compares_with.hpp:29
Definition: comparison.hpp:176
constexpr bool value
T is a fixed or dynamic value that is reducible to a number.
Definition: value.hpp:45
Definition for values::abs.
Definition: fixed-constants.hpp:23
Definition for values::fixed_value_of.
constexpr bool fixed_value_compares_with
T has a fixed value that compares with N in a particular way based on parameter comp.
Definition: fixed_value_compares_with.hpp:74
Basic definitions for OpenKalman as a whole.