mp_units::utility::safe_int::safe_int¶
Construct from safe_int
Synopsis¶
Declared in <mp-units/utility/safe_int.h>
template</* implementation-defined */ U>
[[nodiscard]] constexpr explicit(!detail::is_value_preserving_int_v<U, T>) safe_int(safe_int<U, ErrorPolicy> other);
Return Value¶
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| other | The object to construct from |