General Utility Library for C++14  2.11
Bit Manipulation and Testing

Working With Bits in Integral Values

bit_set(): Set a bit in an integral value.

bit_reset(): Clear a bit in an integral value.

bit_flip(): Flip a bit in an integral value.

bit_test(): Test a bit in an integral value.

Endianness

endian: An enum to determine the endianness of multi-byte scalars on the current platform, behaving like std::endian from C++20.

is_big_endian(): Determine if the current platform uses big-endian byte order.

is_little_endian(): Determine if the current platform uses little-endian byte order.