• Home
  • Raw
  • Download

Lines Matching refs:Src

55   template <typename Src>
56 CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric()
59 template <typename Src>
60 CheckedNumeric(Src value, RangeConstraint validity) in CheckedNumeric()
65 template <typename Src>
66 CheckedNumeric(Src value) // NOLINT in CheckedNumeric()
69 STATIC_ASSERT(std::numeric_limits<Src>::is_specialized); in CheckedNumeric()
117 template <typename Src> CheckedNumeric& operator+=(Src rhs);
118 template <typename Src> CheckedNumeric& operator-=(Src rhs);
119 template <typename Src> CheckedNumeric& operator*=(Src rhs);
120 template <typename Src> CheckedNumeric& operator/=(Src rhs);
121 template <typename Src> CheckedNumeric& operator%=(Src rhs);
170 template <typename Src>
172 Src u,
173 typename enable_if<std::numeric_limits<Src>::is_specialized, int>::type =
178 template <typename Src>
180 const CheckedNumeric<Src>& u,
181 typename enable_if<!is_same<Src, T>::value, int>::type = 0) {
221 template <typename Src> \
222 CheckedNumeric<T>& CheckedNumeric<T>::operator COMPOUND_OP(Src rhs) { \
223 *this = CheckedNumeric<T>::cast(*this) OP CheckedNumeric<Src>::cast(rhs); \
227 template <typename T, typename Src> \
228 CheckedNumeric<typename ArithmeticPromotion<T, Src>::type> operator OP( \
229 const CheckedNumeric<Src>& lhs, const CheckedNumeric<T>& rhs) { \
230 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
231 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \
239 template <typename T, typename Src> \
240 CheckedNumeric<typename ArithmeticPromotion<T, Src>::type> operator OP( \
241 const CheckedNumeric<T>& lhs, Src rhs) { \
242 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
243 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \
250 template <typename T, typename Src> \
251 CheckedNumeric<typename ArithmeticPromotion<T, Src>::type> operator OP( \
252 Src lhs, const CheckedNumeric<T>& rhs) { \
253 typedef typename ArithmeticPromotion<T, Src>::type Promotion; \
254 if (IsIntegerArithmeticSafe<Promotion, T, Src>::value) \