// -*- C++ -*- //===------------------------------ ratio ---------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef _LIBCPP_EXPERIMENTAL_RATIO #define _LIBCPP_EXPERIMENTAL_RATIO /** experimental/ratio synopsis C++1y #include namespace std { namespace experimental { inline namespace fundamentals_v1 { // See C++14 20.11.5, ratio comparison template constexpr bool ratio_equal_v = ratio_equal::value; template constexpr bool ratio_not_equal_v = ratio_not_equal::value; template constexpr bool ratio_less_v = ratio_less::value; template constexpr bool ratio_less_equal_v = ratio_less_equal::value; template constexpr bool ratio_greater_v = ratio_greater::value; template constexpr bool ratio_greater_equal_v = ratio_greater_equal::value; } // namespace fundamentals_v1 } // namespace experimental } // namespace std */ #include #if _LIBCPP_STD_VER > 11 #include _LIBCPP_BEGIN_NAMESPACE_LFTS #ifndef _LIBCPP_HAS_NO_VARIABLE_TEMPLATES template _LIBCPP_CONSTEXPR bool ratio_equal_v = ratio_equal<_R1, _R2>::value; template _LIBCPP_CONSTEXPR bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; template _LIBCPP_CONSTEXPR bool ratio_less_v = ratio_less<_R1, _R2>::value; template _LIBCPP_CONSTEXPR bool ratio_less_equal_v = ratio_less_equal<_R1, _R2>::value; template _LIBCPP_CONSTEXPR bool ratio_greater_v = ratio_greater<_R1, _R2>::value; template _LIBCPP_CONSTEXPR bool ratio_greater_equal_v = ratio_greater_equal<_R1, _R2>::value; #endif /* _LIBCPP_HAS_NO_VARIABLE_TEMPLATES */ _LIBCPP_END_NAMESPACE_LFTS #endif /* _LIBCPP_STD_VER > 11 */ #endif // _LIBCPP_EXPERIMENTAL_RATIO