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.

Created with MrDocs