Lines Matching refs:Src
53 template <typename Dst, typename Src>
54 constexpr bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType()
74 template <typename Dst, class CheckHandler = CheckOnFailure, typename Src>
75 constexpr Dst checked_cast(Src value) { in checked_cast()
78 using SrcType = typename internal::UnderlyingType<Src>::type; in checked_cast()
108 template <typename Dst, template <typename> class S, typename Src>
109 constexpr Dst saturated_cast_impl(Src value, RangeCheck constraint) { in saturated_cast_impl()
116 : (std::is_integral<Src>::value || !constraint.IsUnderflowFlagSet() in saturated_cast_impl()
128 typename Src>
129 constexpr Dst saturated_cast(Src value) { in saturated_cast()
130 using SrcType = typename UnderlyingType<Src>::type; in saturated_cast()
139 template <typename Dst, typename Src>
140 constexpr Dst strict_cast(Src value) { in strict_cast()
141 using SrcType = typename UnderlyingType<Src>::type; in strict_cast()
142 static_assert(UnderlyingType<Src>::is_numeric, "Argument must be numeric."); in strict_cast()
160 template <typename Dst, typename Src, class Enable = void>
165 template <typename Dst, typename Src>
168 Src,
170 ArithmeticOrUnderlyingEnum<Src>::value>::type> {
171 static const bool value = StaticDstRangeRelationToSrcRange<Dst, Src>::value ==
193 template <typename Src>
194 constexpr StrictNumeric(const StrictNumeric<Src>& rhs)
199 template <typename Src>
200 constexpr StrictNumeric(Src value) // NOLINT(runtime/explicit)