Function Subspace :: _u16 literal

auto operator""_u16(unsigned long long val) -> u16

For writing u16 literals.

Un-qualified integer literals are 32 bits large (the size of int) and signed values, unless a literal suffix modifies them, such as with _u16 which creates an unsigned 16-bit value.

Values out of range for u16 will fail to compile.


auto i = 123_u16 - (5_u16).abs();
sus_check(i == 118_u16);