Lines Matching refs:T2
27 template <typename T1, typename T2>
29 typedef typename std::conditional<sizeof(T1) >= sizeof(T2), T1, T2>::type type;
33 template<template <typename OpT> class Op, typename T1, typename T2>
34 static inline typename select_bigger<T1, T2>::type SafeMath(T1 a, T2 b) { in SafeMath()
35 typedef typename select_bigger<T1, T2>::type biggest_T; in SafeMath()
38 static_assert(std::is_signed<T2>::value, "Expected T2 to be signed"); in SafeMath()
45 template<typename T1, typename T2>
46 static inline typename select_bigger<T1, T2>::type SafeAdd(T1 a, T2 b) { in SafeAdd()
51 template<typename T1, typename T2>
52 static inline typename select_bigger<T1, T2>::type SafeSub(T1 a, T2 b) { in SafeSub()
57 template<typename T1, typename T2>
58 static inline typename select_bigger<T1, T2>::type SafeMul(T1 a, T2 b) { in SafeMul()