STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Static Public Attributes | List of all members
_Ratio_multiply< _R1, _R2 > Struct Template Reference

Public Types

typedef _Safe_mult< _N1/_Gx, _N2/_Gy, true_Num
 
typedef _Safe_mult< _D1/_Gy, _D2/_Gx, true_Den
 

Static Public Attributes

static constexpr intmax_t _N1 = _R1::num
 
static constexpr intmax_t _D1 = _R1::den
 
static constexpr intmax_t _N2 = _R2::num
 
static constexpr intmax_t _D2 = _R2::den
 
static constexpr intmax_t _Gx = _Gcd<_N1, _D2>::value
 
static constexpr intmax_t _Gy = _Gcd<_N2, _D1>::value
 

Member Typedef Documentation

template<class _R1 , class _R2 >
typedef _Safe_mult<_D1 / _Gy, _D2 / _Gx, true> _Ratio_multiply< _R1, _R2 >::_Den
template<class _R1 , class _R2 >
typedef _Safe_mult<_N1 / _Gx, _N2 / _Gy, true> _Ratio_multiply< _R1, _R2 >::_Num

Member Data Documentation

template<class _R1 , class _R2 >
constexpr intmax_t _Ratio_multiply< _R1, _R2 >::_D1 = _R1::den
static
template<class _R1 , class _R2 >
constexpr intmax_t _Ratio_multiply< _R1, _R2 >::_D2 = _R2::den
static
template<class _R1 , class _R2 >
constexpr intmax_t _Ratio_multiply< _R1, _R2 >::_Gx = _Gcd<_N1, _D2>::value
static
template<class _R1 , class _R2 >
constexpr intmax_t _Ratio_multiply< _R1, _R2 >::_Gy = _Gcd<_N2, _D1>::value
static
template<class _R1 , class _R2 >
constexpr intmax_t _Ratio_multiply< _R1, _R2 >::_N1 = _R1::num
static
template<class _R1 , class _R2 >
constexpr intmax_t _Ratio_multiply< _R1, _R2 >::_N2 = _R2::num
static

The documentation for this struct was generated from the following file: