8 struct CmpThreeWayFunction {
9 template<concepts::Integer T, concepts::Integer U>
10 constexpr auto operator()(T a, U b)
const -> types::strong_ordering {
13 if constexpr (concepts::Signed<T> == concepts::Signed<U>) {
15 }
else if constexpr (concepts::Signed<T>) {
16 return a < 0 ? types::strong_ordering::less : UT(a) <=> b;
18 return b < 0 ? types::strong_ordering::greater : a <=> UU(b);
constexpr auto cmp_three_way
Definition cmp_three_way.h:24