Lines Matching refs:Dst
54 template <typename Dst = T>
57 IsValueInRangeForNumericType<Dst>(state_.value()); in IsValid()
63 template <typename Dst>
70 AssignIfValid(Dst* result) const { in AssignIfValid()
71 return BASE_NUMERICS_LIKELY(IsValid<Dst>()) in AssignIfValid()
72 ? ((*result = static_cast<Dst>(state_.value())), true) in AssignIfValid()
84 template <typename Dst = T, class CheckHandler = CheckOnFailure>
85 constexpr StrictNumeric<Dst> ValueOrDie() const { in ValueOrDie()
86 return BASE_NUMERICS_LIKELY(IsValid<Dst>()) in ValueOrDie()
87 ? static_cast<Dst>(state_.value()) in ValueOrDie()
88 : CheckHandler::template HandleFailure<Dst>(); in ValueOrDie()
97 template <typename Dst = T, typename Src>
98 constexpr StrictNumeric<Dst> ValueOrDefault(const Src default_value) const { in ValueOrDefault()
99 return BASE_NUMERICS_LIKELY(IsValid<Dst>()) in ValueOrDefault()
100 ? static_cast<Dst>(state_.value()) in ValueOrDefault()
101 : checked_cast<Dst>(default_value); in ValueOrDefault()
107 template <typename Dst>
108 constexpr CheckedNumeric<typename UnderlyingType<Dst>::type> Cast() const { in Cast()
291 template <typename Dst, typename Src>
293 return value.template IsValid<Dst>();
296 template <typename Dst, typename Src>
297 constexpr StrictNumeric<Dst> ValueOrDieForType(
299 return value.template ValueOrDie<Dst>();
302 template <typename Dst, typename Src, typename Default>
303 constexpr StrictNumeric<Dst> ValueOrDefaultForType(
306 return value.template ValueOrDefault<Dst>(default_value);