Lines Matching defs:value
20 static_assert(std::is_arithmetic<T>::value,
39 constexpr ClampedNumeric(Src value) // NOLINT(runtime/explicit)
40 : value_(saturated_cast<T>(value)) {
41 static_assert(std::is_arithmetic<Src>::value, "Argument must be numeric.");
48 StrictNumeric<Src> value) // NOLINT(runtime/explicit)
49 : value_(saturated_cast<T>(static_cast<Src>(value))) {}
101 ClampedMaxOp<T, U>::Do(value_, Wrapper<U>::value(rhs)));
109 ClampedMinOp<T, U>::Do(value_, Wrapper<U>::value(rhs)));
113 // integer of the same width as the source type, containing the absolute value
127 ClampedNumeric value = *this;
129 return value;
138 ClampedNumeric value = *this;
140 return value;
151 Math::template Do<T>(Wrapper<L>::value(lhs), Wrapper<R>::value(rhs)));
159 ClampedNumeric<T>(Math::template Do<T>(value_, Wrapper<R>::value(rhs)));
169 // This method extracts the raw integer value without saturating it to the
181 static constexpr Src value(Src value) {
182 return static_cast<typename UnderlyingType<Src>::type>(value);
191 const T value) {
192 return value;
197 std::ostream& operator<<(std::ostream& os, const ClampedNumeric<T>& value) {
198 os << static_cast<T>(value);