Lines Matching refs:Dst
20 template <typename Dst, typename Src>
22 return internal::DstRangeRelationToSrcRange<Dst>(value) == in IsValueInRangeForNumericType()
29 template <typename Dst, typename Src>
30 inline Dst checked_cast(Src value) { in checked_cast()
31 CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast()
32 return static_cast<Dst>(value); in checked_cast()
38 template <typename Dst, typename Src>
39 inline Dst saturated_cast(Src value) { in saturated_cast()
41 if (std::numeric_limits<Dst>::is_iec559) in saturated_cast()
42 return static_cast<Dst>(value); in saturated_cast()
44 switch (internal::DstRangeRelationToSrcRange<Dst>(value)) { in saturated_cast()
46 return static_cast<Dst>(value); in saturated_cast()
49 return std::numeric_limits<Dst>::min(); in saturated_cast()
52 return std::numeric_limits<Dst>::max(); in saturated_cast()