Struct ct_add

Synopsis

#include <include/EASTL/ratio.h>

template <intmax_t X, intmax_t Y>
struct ct_add

Description

ct_add

Source

Lines 128-133 in include/EASTL/ratio.h.

template <intmax_t X, intmax_t Y>
struct ct_add 
{ 
    static_assert(AdditionOverFlow<X,Y>::value, "compile-time addition overflow"); 
    static const intmax_t value = X + Y; 
};





Add Discussion as Guest

Log in