Lines Matching refs:Src
29 template <typename Src>
30 constexpr ClampedNumeric(const ClampedNumeric<Src>& rhs)
33 template <typename Src>
38 template <typename Src>
39 constexpr ClampedNumeric(Src value) // NOLINT(runtime/explicit)
41 static_assert(std::is_arithmetic<Src>::value, "Argument must be numeric.");
46 template <typename Src>
48 StrictNumeric<Src> value) // NOLINT(runtime/explicit)
49 : value_(saturated_cast<T>(static_cast<Src>(value))) {}
59 template <typename Src>
60 constexpr ClampedNumeric& operator+=(const Src rhs);
61 template <typename Src>
62 constexpr ClampedNumeric& operator-=(const Src rhs);
63 template <typename Src>
64 constexpr ClampedNumeric& operator*=(const Src rhs);
65 template <typename Src>
66 constexpr ClampedNumeric& operator/=(const Src rhs);
67 template <typename Src>
68 constexpr ClampedNumeric& operator%=(const Src rhs);
69 template <typename Src>
70 constexpr ClampedNumeric& operator<<=(const Src rhs);
71 template <typename Src>
72 constexpr ClampedNumeric& operator>>=(const Src rhs);
73 template <typename Src>
74 constexpr ClampedNumeric& operator&=(const Src rhs);
75 template <typename Src>
76 constexpr ClampedNumeric& operator|=(const Src rhs);
77 template <typename Src>
78 constexpr ClampedNumeric& operator^=(const Src rhs);
179 template <typename Src>
181 static constexpr Src value(Src value) {
182 return static_cast<typename UnderlyingType<Src>::type>(value);