Struct RatioGCD

Synopsis

#include <include/EASTL/chrono.h>

template <class Period1, class Period2>
struct RatioGCD

Description

RatioGCD.

Source

Lines 129-137 in include/EASTL/chrono.h.

template <class Period1, class Period2>
struct RatioGCD
{
    static_assert(IsRatio<Period1>::value, "Period1 is not a eastl::ratio type");
    static_assert(IsRatio<Period2>::value, "Period2 is not a eastl::ratio type");
    typedef ratio<eastl::Internal::gcd<Period1::num, Period2::num>::value,
                  eastl::Internal::lcm<Period1::den, Period2::den>::value> type;
};





Add Discussion as Guest

Log in