Function Subspace :: _i32 literal

auto operator""_i32(unsigned long long val) -> i32

For writing i32 literals.

Un-qualified integer literals are 32 bits large (the size of int), unless a literal suffix modifies them. The _i32 suffix creates an 32-bit value which is the same as not adding a suffix at all, except that it forces a safe numeric type instead of a primitive value when this is needed (such as for templates or member function access).

Values out of range for i32 will fail to compile.


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