integers
int8: max, min, compare, print, hash
int16: max, min, compare, print, hash
int32: max, min, compare, print, hash
int64: max, min, compare, print, hash
uint8: max, min, compare, print, hash
uint16: max, min, compare, print, hash
uint32: max, min, compare, print, hash
uint64: max, min, compare, print, hash
c_size_t: compare, print, hash
c_schar: max, min, compare, print, hash
c_uchar: max, min, compare, print, hash
c_short: max, min, compare, print, hash
c_ushort: max, min, compare, print, hash
c_int: max, min, compare, print, hash
c_uint: max, min, compare, print, hash
c_longlong: max, min, compare, print, hash
c_ulonglong: max, min, compare, print, hash
struct int8: Comparable, Printable, Hashable, Addable
An 8-bit signed integer.
max
const int8 max = 127;Largest value of this type.
min
const int8 min = -128;Smallest value of this type.
compare
Ordering compare(int8& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct int16: Comparable, Printable, Hashable, Addable
A 16-bit signed integer.
max
const int16 max = 32767;Largest value of this type.
min
const int16 min = -32768;Smallest value of this type.
compare
Ordering compare(int16& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct int32: Comparable, Printable, Hashable, Addable
A 32-bit signed integer.
max
const int32 max = 2147483647;Largest value of this type.
min
const int32 min = -2147483648;Smallest value of this type.
compare
Ordering compare(int32& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct int64: Comparable, Printable, Hashable, Addable
A 64-bit signed integer.
max
const int64 max = 9223372036854775807;Largest value of this type.
min
const int64 min = -9223372036854775808;Smallest value of this type.
compare
Ordering compare(int64& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct uint8: Comparable, Printable, Hashable, Addable
An 8-bit unsigned integer.
max
const uint8 max = 255;Largest value of this type.
min
const uint8 min = 0;Smallest value of this type.
compare
Ordering compare(uint8& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct uint16: Comparable, Printable, Hashable, Addable
A 16-bit unsigned integer.
max
const uint16 max = 65535;Largest value of this type.
min
const uint16 min = 0;Smallest value of this type.
compare
Ordering compare(uint16& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct uint32: Comparable, Printable, Hashable, Addable
A 32-bit unsigned integer.
max
const uint32 max = 4294967295;Largest value of this type.
min
const uint32 min = 0;Smallest value of this type.
compare
Ordering compare(uint32& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct uint64: Comparable, Printable, Hashable, Addable
A 64-bit unsigned integer.
max
const uint64 max = 18446744073709551615;Largest value of this type.
min
const uint64 min = 0;Smallest value of this type.
compare
Ordering compare(uint64& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct c_size_t: Comparable, Printable, Hashable, Addable
C's size_t type: a pointer-sized unsigned integer,
32-bit on wasm32 and 64-bit on the 64-bit native targets. Use it for C
externs that take size_t (e.g. getcwd) so the
generated call matches the C headers on every target. (No
max/min: the largest value depends on the
target.)
compare
Ordering compare(c_size_t& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct c_schar: Comparable, Printable, Hashable, Addable
C's signed char type: an 8-bit signed integer.
max
const c_schar max = 127;Largest value of this type.
min
const c_schar min = -128;Smallest value of this type.
compare
Ordering compare(c_schar& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct c_uchar: Comparable, Printable, Hashable, Addable
C's unsigned char type: an 8-bit unsigned integer.
max
const c_uchar max = 255;Largest value of this type.
min
const c_uchar min = 0;Smallest value of this type.
compare
Ordering compare(c_uchar& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct c_short: Comparable, Printable, Hashable, Addable
C's short type: a 16-bit signed integer.
max
const c_short max = 32767;Largest value of this type.
min
const c_short min = -32768;Smallest value of this type.
compare
Ordering compare(c_short& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct c_ushort: Comparable, Printable, Hashable, Addable
C's unsigned short type: a 16-bit unsigned integer.
max
const c_ushort max = 65535;Largest value of this type.
min
const c_ushort min = 0;Smallest value of this type.
compare
Ordering compare(c_ushort& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct c_int: Comparable, Printable, Hashable, Addable
C's int type: a 32-bit signed integer.
max
const c_int max = 2147483647;Largest value of this type.
min
const c_int min = -2147483648;Smallest value of this type.
compare
Ordering compare(c_int& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct c_uint: Comparable, Printable, Hashable, Addable
C's unsigned int type: a 32-bit unsigned integer.
max
const c_uint max = 4294967295;Largest value of this type.
min
const c_uint min = 0;Smallest value of this type.
compare
Ordering compare(c_uint& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct c_long: Comparable, Printable, Hashable, Addable
C's long type: a 32-bit signed integer on Windows and
wasm32, 64-bit on the 64-bit Unix targets. (No
max/min: the largest value depends on the
target.)
compare
Ordering compare(c_long& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct c_ulong: Comparable, Printable, Hashable, Addable
C's unsigned long type: a 32-bit unsigned integer on
Windows and wasm32, 64-bit on the 64-bit Unix targets. (No
max/min: the largest value depends on the
target.)
compare
Ordering compare(c_ulong& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct c_longlong: Comparable, Printable, Hashable, Addable
C's long long type: a 64-bit signed integer.
max
const c_longlong max = 9223372036854775807;Largest value of this type.
min
const c_longlong min = -9223372036854775808;Smallest value of this type.
compare
Ordering compare(c_longlong& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.
struct c_ulonglong: Comparable, Printable, Hashable, Addable
C's unsigned long long type: a 64-bit unsigned
integer.
max
const c_ulonglong max = 18446744073709551615;Largest value of this type.
min
const c_ulonglong min = 0;Smallest value of this type.
compare
Ordering compare(c_ulonglong& other)Compares this value to another.
void print(OutputStream& stream)Writes this value to the given stream.
hash
uint64 hash()Returns the hash of this value.