Lines Matching refs:Src
60 template <typename Src>
61 CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric()
64 template <typename Src>
65 CheckedNumeric(Src value, RangeConstraint validity) in CheckedNumeric()
70 template <typename Src>
71 CheckedNumeric(Src value) // NOLINT(runtime/explicit) in CheckedNumeric()
73 static_assert(std::numeric_limits<Src>::is_specialized, in CheckedNumeric()
79 template <typename Src>
80 CheckedNumeric(StrictNumeric<Src> value) // NOLINT(runtime/explicit) in CheckedNumeric()
81 : state_(static_cast<Src>(value)) { in CheckedNumeric()
128 template <typename Src> CheckedNumeric& operator+=(Src rhs);
129 template <typename Src> CheckedNumeric& operator-=(Src rhs);
130 template <typename Src> CheckedNumeric& operator*=(Src rhs);
131 template <typename Src> CheckedNumeric& operator/=(Src rhs);
132 template <typename Src> CheckedNumeric& operator%=(Src rhs);
189 template <typename Src>
191 Src u,
192 typename std::enable_if<std::numeric_limits<Src>::is_specialized,
197 template <typename Src>
199 const CheckedNumeric<Src>& u,
200 typename std::enable_if<!std::is_same<Src, T>::value, int>::type = 0) {
250 template <typename Src> \
251 CheckedNumeric<T>& CheckedNumeric<T>::operator COMPOUND_OP(Src rhs) { \
253 OP CheckedNumeric<typename UnderlyingType<Src>::type>::cast(rhs); \
257 template <typename T, typename Src> \
258 CheckedNumeric<typename ArithmeticPromotion<T, Src>::type> operator OP( \
259 const CheckedNumeric<Src>& lhs, const CheckedNumeric<T>& rhs) { \
260 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
261 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \
269 template <typename T, typename Src, \
270 typename std::enable_if<std::is_arithmetic<Src>::value>::type* = \
272 CheckedNumeric<typename ArithmeticPromotion<T, Src>::type> operator OP( \
273 const CheckedNumeric<T>& lhs, Src rhs) { \
274 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
275 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \
282 template <typename T, typename Src, \
283 typename std::enable_if<std::is_arithmetic<Src>::value>::type* = \
285 CheckedNumeric<typename ArithmeticPromotion<T, Src>::type> operator OP( \
286 Src lhs, const CheckedNumeric<T>& rhs) { \
287 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
288 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \