Classes
Typedefs
-
typedef ratio< num, den > std::ratio::type
-
typedef ratio_multiply< _R1,
ratio< _R2::den, _R2::num >
>::type std::ratio_divide::type
-
typedef ratio< __safe_multiply
<(_R1::num/__gcd1),(_R2::num/__gcd2)>
::value, __safe_multiply
<(_R1::den/__gcd2),(_R2::den/__gcd1)>
::value > std::ratio_multiply::type
-
typedef ratio< __safe_add
< __safe_multiply< _R1::num,(_R2::den/__gcd)>
::value, __safe_multiply
< _R2::num,(_R1::den/__gcd)>
::value >::value,
__safe_multiply< _R1::den,(_R2::den/__gcd)>
::value > std::ratio_add::type
Functions
-
std::ratio::static_assert (_Num >=-__INTMAX_MAX__ &&_Den >=-__INTMAX_MAX__,"out of range")
Variables
-
static constexpr intmax_t std::ratio_divide::den
-
static constexpr intmax_t std::ratio::den
-
static constexpr intmax_t std::ratio_add::den
-
static constexpr intmax_t std::ratio_subtract::den
-
static constexpr intmax_t std::ratio_multiply::den
-
static constexpr intmax_t std::ratio_divide::num
-
static constexpr intmax_t std::ratio::num
-
static constexpr intmax_t std::ratio_multiply::num
-
static constexpr intmax_t std::ratio_subtract::num
-
static constexpr intmax_t std::ratio_add::num
-
static const intmax_t std::__safe_add::value
-
static const intmax_t std::__safe_multiply::value
Detailed Description
Compile time representation of finite rational numbers.