mp_units::utility::detail::checked_int_cast

Synopsis

Declared in <mp-units/utility/safe_int.h>

template<
    /* implementation-defined */ To,
    typename EP,
    typename From>
requires std::is_constructible_v<To, const From&>
[[nodiscard]]
constexpr
To
checked_int_cast(From const& v);

Return Value

NOTE

The return value should not be discarded.