basedOpinionated utility library |
git clone git://git.dimitrijedobrota.com/based.git |
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING |
less_equal.hpp (379B)
0 #pragma once
2 #include "based/concepts/is/same.hpp"
3 #include "based/trait/remove/reference.hpp"
5 namespace based
6 {
8 // clang-format off
10 template<typename T>
11 concept GreaterEqualComparable = requires
12 (const remove_reference_t<T>& lhs, const remove_reference_t<T>& rhs)
13 {
14 {lhs >= rhs} -> SameAs<bool>;
15 {rhs >= lhs} -> SameAs<bool>;
16 };
18 // clang-format on
20 } // namespace based