• Home
  • Raw
  • Download

Lines Matching refs:Src

29   template <typename Src>
30 constexpr CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric()
33 template <typename Src>
38 template <typename Src>
39 constexpr CheckedNumeric(Src value) // NOLINT(runtime/explicit) in CheckedNumeric()
41 static_assert(std::is_arithmetic<Src>::value, "Argument must be numeric."); in CheckedNumeric()
46 template <typename Src>
48 StrictNumeric<Src> value) // NOLINT(runtime/explicit) in CheckedNumeric()
49 : state_(static_cast<Src>(value)) {} in CheckedNumeric()
97 template <typename Dst = T, typename Src>
98 constexpr StrictNumeric<Dst> ValueOrDefault(const Src default_value) const { in ValueOrDefault()
119 template <typename Src>
120 constexpr CheckedNumeric& operator+=(const Src rhs);
121 template <typename Src>
122 constexpr CheckedNumeric& operator-=(const Src rhs);
123 template <typename Src>
124 constexpr CheckedNumeric& operator*=(const Src rhs);
125 template <typename Src>
126 constexpr CheckedNumeric& operator/=(const Src rhs);
127 template <typename Src>
128 constexpr CheckedNumeric& operator%=(const Src rhs);
129 template <typename Src>
130 constexpr CheckedNumeric& operator<<=(const Src rhs);
131 template <typename Src>
132 constexpr CheckedNumeric& operator>>=(const Src rhs);
133 template <typename Src>
134 constexpr CheckedNumeric& operator&=(const Src rhs);
135 template <typename Src>
136 constexpr CheckedNumeric& operator|=(const Src rhs);
137 template <typename Src>
138 constexpr CheckedNumeric& operator^=(const Src rhs);
259 template <typename Src>
260 constexpr CheckedNumeric(Src value, bool is_valid) in CheckedNumeric()
265 template <typename Src>
267 static constexpr bool is_valid(Src) { return true; } in is_valid()
268 static constexpr Src value(Src value) { return value; } in value()
271 template <typename Src>
272 struct Wrapper<CheckedNumeric<Src>> {
273 static constexpr bool is_valid(const CheckedNumeric<Src> v) {
276 static constexpr Src value(const CheckedNumeric<Src> v) {
281 template <typename Src>
282 struct Wrapper<StrictNumeric<Src>> {
283 static constexpr bool is_valid(const StrictNumeric<Src>) { return true; }
284 static constexpr Src value(const StrictNumeric<Src> v) {
285 return static_cast<Src>(v);
291 template <typename Dst, typename Src>
292 constexpr bool IsValidForType(const CheckedNumeric<Src> value) {
296 template <typename Dst, typename Src>
298 const CheckedNumeric<Src> value) {
302 template <typename Dst, typename Src, typename Default>
304 const CheckedNumeric<Src> value,