di 0.1.0
Loading...
Searching...
No Matches
cmp_less_equal.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace di::math {
6namespace detail {
7 struct CmpLessEqualFunction {
8 template<concepts::Integer T, concepts::Integer U>
9 constexpr auto operator()(T a, U b) const -> bool {
10 return !cmp_greater(a, b);
11 }
12 };
13}
14
15constexpr inline auto cmp_less_equal = detail::CmpLessEqualFunction {};
16}
Definition abs.h:10
constexpr auto cmp_greater
Definition cmp_greater.h:15
constexpr auto cmp_less_equal
Definition cmp_less_equal.h:15