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

Public Types

typedef ratio< _Safe_add< _Safe_mult< _N1, _D2/_Gx >::value, _Safe_mult< _N2, _D1/_Gx >::value >::value, _Safe_mult< _D1, _D2/_Gx >::value >::type type
 

Static Public Attributes

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

Member Typedef Documentation

template<class _R1 , class _R2 >
typedef ratio< _Safe_add< _Safe_mult<_N1, _D2 / _Gx>::value, _Safe_mult<_N2, _D1 / _Gx>::value >::value, _Safe_mult<_D1, _D2 / _Gx>::value >::type _Ratio_add< _R1, _R2 >::type

Member Data Documentation

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

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