Iros
 
Loading...
Searching...
No Matches
greater.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace di::function {
8struct Greater {
9 template<typename T, typename U>
10 constexpr auto operator()(T const& a, U const& b) const -> bool
11 requires(requires {
13 })
14 {
16 return math::cmp_greater(a, b);
17 } else {
18 return a > b;
19 }
20 }
21};
22
23constexpr inline auto greater = curry_back(Greater {}, meta::c_<2ZU>);
24}
25
26namespace di {
28using function::Greater;
29}
Implicit conversion for this test refers to the ability to return a value of function from a type.
Definition operations.h:89
Definition language.h:215
Definition as_bool.h:8
constexpr auto curry_back
Definition curry_back.h:141
constexpr auto greater
Definition greater.h:23
constexpr auto cmp_greater
Definition cmp_greater.h:15
constexpr auto c_
A value of type Constexpr<val>.
Definition constexpr.h:252
Definition zstring_parser.h:9
Definition greater.h:8
constexpr auto operator()(T const &a, U const &b) const -> bool requires(
Definition greater.h:10