Lines Matching refs:T
56 template <typename T>
57 constexpr auto CastEnumToInteger(T enum_value) { in CastEnumToInteger()
58 static_assert(std::is_enum<T>::value, "argument must be of an enum type"); in CastEnumToInteger()
59 return static_cast<typename std::underlying_type<T>::type>(enum_value); in CastEnumToInteger()
75 template <typename T>
76 T CopyFromBufferOrDie(NONNULL const void* buf, size_t buf_len) { in CopyFromBufferOrDie()
77 static_assert(std::is_trivially_copyable<T>::value, in CopyFromBufferOrDie()
79 T out; in CopyFromBufferOrDie()
87 template <typename T>
88 constexpr T GetMaxVal() { in GetMaxVal()
91 static_assert(std::is_integral<T>::value, in GetMaxVal()
93 return std::numeric_limits<T>::max(); in GetMaxVal()
98 template <typename T>
99 constexpr T GetMaxVal(const T& /* t_instance */) { in GetMaxVal() argument
100 return GetMaxVal<T>(); in GetMaxVal()