• Home
  • Raw
  • Download

Lines Matching refs:Src

106   template <typename Src>
107 constexpr CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric()
110 template <typename Src>
115 template <typename Src>
116 constexpr CheckedNumeric(Src value) // NOLINT(runtime/explicit) in CheckedNumeric()
118 static_assert(std::is_arithmetic<Src>::value, "Argument must be numeric."); in CheckedNumeric()
123 template <typename Src>
125 StrictNumeric<Src> value) // NOLINT(runtime/explicit) in CheckedNumeric()
126 : state_(static_cast<Src>(value)) {} in CheckedNumeric()
166 template <typename Dst = T, typename Src>
167 constexpr StrictNumeric<Dst> ValueOrDefault(const Src default_value) const { in ValueOrDefault()
187 template <typename Src>
188 CheckedNumeric& operator+=(const Src rhs);
189 template <typename Src>
190 CheckedNumeric& operator-=(const Src rhs);
191 template <typename Src>
192 CheckedNumeric& operator*=(const Src rhs);
193 template <typename Src>
194 CheckedNumeric& operator/=(const Src rhs);
195 template <typename Src>
196 CheckedNumeric& operator%=(const Src rhs);
197 template <typename Src>
198 CheckedNumeric& operator<<=(const Src rhs);
199 template <typename Src>
200 CheckedNumeric& operator>>=(const Src rhs);
201 template <typename Src>
202 CheckedNumeric& operator&=(const Src rhs);
203 template <typename Src>
204 CheckedNumeric& operator|=(const Src rhs);
205 template <typename Src>
206 CheckedNumeric& operator^=(const Src rhs);
319 template <typename Src>
320 constexpr CheckedNumeric(Src value, bool is_valid) in CheckedNumeric()
325 template <typename Src>
327 static constexpr bool is_valid(Src) { return true; } in is_valid()
328 static constexpr Src value(Src value) { return value; } in value()
331 template <typename Src>
332 struct Wrapper<CheckedNumeric<Src>> {
333 static constexpr bool is_valid(const CheckedNumeric<Src> v) {
336 static constexpr Src value(const CheckedNumeric<Src> v) {
341 template <typename Src>
342 struct Wrapper<StrictNumeric<Src>> {
343 static constexpr bool is_valid(const StrictNumeric<Src>) { return true; }
344 static constexpr Src value(const StrictNumeric<Src> v) {
345 return static_cast<Src>(v);
351 template <typename Dst, typename Src>
352 constexpr bool IsValidForType(const CheckedNumeric<Src> value) {
356 template <typename Dst, typename Src>
358 const CheckedNumeric<Src> value) {
362 template <typename Dst, typename Src, typename Default>
364 const CheckedNumeric<Src> value,