cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Backports related to Standard header <bit>
The following names here are also available in namespace std:
std::endian
bit_ceil()
, bit_floor()
- round to powers of twopopcount()
- find the number of 1
bits in the given valuehas_single_bit()
- checks if number is a power of twobit_cast()
(C++20) (down to C++11) - reinterpret bit pattern of an object.