std::ratio_less
Min standard notice:
Header: <ratio>
If the ratio R1 is less than the ratio R2, provides the member constant value equal true. Otherwise, value is false.
# Declarations
template< class R1, class R2 >
struct ratio_less : std::integral_constant<bool, /* see below */> { };
(since C++11)
# Example
#include <iostream>
#include <ratio>
int main()
{
using x = std::ratio<69, 90>;
using y = std::ratio<70, 90>;
if constexpr (std::ratio_less_v<x, y>)
std::cout << x::num << '/' << x::den << " < "
<< y::num << '/' << y::den << '\n';
}