#ifndef SPROUT_MATH_GREATER_HPP #define SPROUT_MATH_GREATER_HPP #include #include #include #include #include namespace sprout { namespace math { namespace detail { template< typename FloatType, typename sprout::enabler_if::value>::type = sprout::enabler > inline SPROUT_CONSTEXPR bool greater(FloatType x, FloatType y) { return sprout::math::not_equal_to(x, y) && x > y; } template< typename IntType, typename sprout::enabler_if::value>::type = sprout::enabler > inline SPROUT_CONSTEXPR bool greater(IntType x, IntType y) { return x > y; } } // namespace detail // // greater // template< typename T1, typename T2, typename sprout::enabler_if::value && std::is_arithmetic::value>::type = sprout::enabler > inline SPROUT_CONSTEXPR bool greater(T1 x, T2 y) { typedef typename sprout::math::float_promote::type promoted; return sprout::math::detail::greater(x, y); } } // namespace math } // namespace sprout #endif // #ifndef SPROUT_MATH_GREATER_HPP