Struct common_type< chrono::duration< Rep1, Period1 >, chrono::duration< Rep2, Period2 > >

Synopsis

#include <include/EASTL/chrono.h>

template <typename Rep1, typename Period1, typename Rep2, typename Period2>
struct common_type<chrono::duration<Rep1, Period1>, chrono::duration<Rep2, Period2>>

Description

duration common_type specialization

Source

Lines 675-680 in include/EASTL/chrono.h.

template <typename Rep1, typename Period1, typename Rep2, typename Period2>
struct common_type<chrono::duration<Rep1, Period1>, chrono::duration<Rep2, Period2>>
{
    typedef chrono::duration<typename eastl::decay<typename eastl::common_type<Rep1, Rep2>::type>::type,
                             typename chrono::Internal::RatioGCD<Period1, Period2>::type> type;
   };





Add Discussion as Guest

Log in