std::ratio< _Num, _Den >(3cxx) | std::ratio< _Num, _Den >(3cxx) |
NAME¶
std::ratio< _Num, _Den > -SYNOPSIS¶
Public Member Functions¶
static_assert (_Den!=0,'denominator cannot be zero')
Static Public Attributes¶
static const intmax_t den
Detailed Description¶
template<intmax_t _Num, intmax_t _Den = 1>struct std::ratio< _Num, _Den >¶
Provides compile-time rational arithmetic.std::ratio<7,-21>::num == -1; std::ratio<7,-21>::den == 3;
Author¶
Generated automatically by Doxygen for libstdc++ from the source code.Thu Aug 2 2012 | libstdc++ |