Lines Matching refs:Src
53 template <typename Src>
54 CheckedNumeric(const CheckedNumeric<Src>& rhs)
57 template <typename Src>
58 CheckedNumeric(Src value, RangeConstraint validity)
63 template <typename Src>
64 CheckedNumeric(Src value)
66 static_assert(std::numeric_limits<Src>::is_specialized,
72 template <typename Src>
73 CheckedNumeric(StrictNumeric<Src> value)
74 : state_(static_cast<Src>(value)) {
121 template <typename Src> CheckedNumeric& operator+=(Src rhs);
122 template <typename Src> CheckedNumeric& operator-=(Src rhs);
123 template <typename Src> CheckedNumeric& operator*=(Src rhs);
124 template <typename Src> CheckedNumeric& operator/=(Src rhs);
125 template <typename Src> CheckedNumeric& operator%=(Src rhs);
181 // returned when Src is the same type as T.
182 template <typename Src>
184 Src u,
185 typename std::enable_if<std::numeric_limits<Src>::is_specialized,
190 template <typename Src>
192 const CheckedNumeric<Src>& u,
193 typename std::enable_if<!is_same<Src, T>::value, int>::type = 0) {
244 template <typename Src> \
245 CheckedNumeric<T>& CheckedNumeric<T>::operator COMPOUND_OP(Src rhs) { \
247 OP CheckedNumeric<typename UnderlyingType<Src>::type>::cast(rhs); \
251 template <typename T, typename Src> \
252 CheckedNumeric<typename ArithmeticPromotion<T, Src>::type> operator OP( \
253 const CheckedNumeric<Src>& lhs, const CheckedNumeric<T>& rhs) { \
254 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
255 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \
263 template <typename T, typename Src> \
264 CheckedNumeric<typename ArithmeticPromotion<T, Src>::type> operator OP( \
265 const CheckedNumeric<T>& lhs, Src rhs) { \
266 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
267 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \
274 template <typename T, typename Src> \
275 CheckedNumeric<typename ArithmeticPromotion<T, Src>::type> operator OP( \
276 Src lhs, const CheckedNumeric<T>& rhs) { \
277 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
278 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \