Mjolnir Core
Core functionality of the Mjolnir API

◆ signed_to_unsigned()

constexpr auto signed_to_unsigned ( T_Type  value) -> EquallySizedUnsignedType<T_Type>
constexpr

Cast an integer to an equally sized unsigned type.

If the original type is already unsigned, the input is returned unmodified.

Template Parameters
T_TypeType of the input value
Parameters
[in]valueInteger value that should be cast
Returns
Unsigned value