Struct ct_simplify

Synopsis

#include <include/EASTL/ratio.h>

template <class R1>
struct ct_simplify

Description

ct_simplify

Source

Lines 152-161 in include/EASTL/ratio.h.

template <class R1>
struct ct_simplify
{ 
    static const intmax_t divisor = Internal::gcd<R1::num, R1::den>::value; 
    static const intmax_t num = R1::num / divisor;
    static const intmax_t den = R1::den / divisor; 
    typedef ratio<num, den> ratio_type;
    typedef ct_simplify<R1> this_type;
};





Add Discussion as Guest

Log in