Lines Matching refs:Src
52 template <typename Dst, typename Src>
53 constexpr bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType()
75 typename Src>
76 constexpr Dst checked_cast(Src value) { in checked_cast()
79 using SrcType = typename internal::UnderlyingType<Src>::type; in checked_cast()
109 template <typename Dst, template <typename> class S, typename Src>
110 constexpr Dst saturated_cast_impl(Src value, RangeCheck constraint) { in saturated_cast_impl()
117 : (std::is_integral<Src>::value || !constraint.IsUnderflowFlagSet() in saturated_cast_impl()
129 typename Src>
130 constexpr Dst saturated_cast(Src value) { in saturated_cast()
131 using SrcType = typename UnderlyingType<Src>::type; in saturated_cast()
140 template <typename Dst, typename Src>
141 constexpr Dst strict_cast(Src value) { in strict_cast()
142 using SrcType = typename UnderlyingType<Src>::type; in strict_cast()
143 static_assert(UnderlyingType<Src>::is_numeric, "Argument must be numeric."); in strict_cast()
161 template <typename Dst, typename Src, class Enable = void>
166 template <typename Dst, typename Src>
169 Src,
171 ArithmeticOrUnderlyingEnum<Src>::value>::type> {
172 static const bool value = StaticDstRangeRelationToSrcRange<Dst, Src>::value ==
194 template <typename Src>
195 constexpr StrictNumeric(const StrictNumeric<Src>& rhs)
200 template <typename Src>
201 constexpr StrictNumeric(Src value) // NOLINT(runtime/explicit)