|
libstdc++
|
Classes | |
| struct | std::ratio< _Num, _Den > |
| Provides compile-time rational arithmetic. More... | |
| struct | std::ratio_equal< _R1, _R2 > |
| ratio_equal More... | |
| struct | std::ratio_not_equal< _R1, _R2 > |
| ratio_not_equal More... | |
Typedefs | |
|
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< num, den > | std::ratio::type |
|
typedef __ratio_multiply< _R1, ratio< _R2::den, _R2::num > >::type | std::__ratio_divide::type |
Functions | |
| std::ratio::static_assert (_Num >=-__INTMAX_MAX__ &&_Den >=-__INTMAX_MAX__,"out of range") | |
Variables | |
| static constexpr uintmax_t | std::__big_sub::__hi |
| static constexpr uintmax_t | std::__big_mul::__hi |
| static constexpr uintmax_t | std::__big_add::__hi |
| static constexpr uintmax_t | std::__big_mul::__lo |
| static constexpr uintmax_t | std::__big_sub::__lo |
| static constexpr uintmax_t | std::__big_div_impl::__quot |
| static constexpr uintmax_t | std::__big_div::__quot_hi |
| static constexpr uintmax_t | std::__big_div::__quot_lo |
| static constexpr uintmax_t | std::__big_div_impl::__rem |
| static constexpr uintmax_t | std::__big_div::__rem |
| static constexpr intmax_t | std::__ratio_divide::den |
| static constexpr intmax_t | std::ratio::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 const intmax_t | std::__safe_multiply::value |
Compile time representation of finite rational numbers.