text: /// \copyright Tobias Hienzsch 2019-2021
  /// Distributed under the Boost Software License, Version 1.0.
  /// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
  
  #ifndef TETL_RATIO_LESS_HPP
  #define TETL_RATIO_LESS_HPP
  
  #include "etl/_ratio/ratio.hpp"
  #include "etl/_type_traits/bool_constant.hpp"
  
  namespace etl {
  
  /// \brief Compares two ratio objects for equality at compile-time. If the ratio
  /// R1 is less than the ratio R2, provides the member constant value equal true.
  /// Otherwise, value is false.
  template <typename R1, typename R2>
  struct ratio_less : bool_constant<(R1::num * R2::den < R2::num * R1::den)> {
  };
  
  template <typename R1, typename R2>
  inline constexpr bool ratio_less_v = ratio_less<R1, R2>::value;
  
  } // namespace etl
  
  #endif // TETL_RATIO_LESS_HPP