cxxomfort  rel.20210622
Simple backports for C++ - http://ryan.gulix.cl/fossil.cgi/cxxomfort/
Classes | Namespaces | Functions
bit.hpp File Reference

Implementations and completion of names tied to bit. More...

Classes

struct  count_l_0_t< U, u >
 Defines member value with the number of lefmost 0 s in u . More...
 
struct  leftmost_1< U, u >
 Defines member value with the position of the leftmost 1 bit in u . More...
 

Namespaces

 cxxomfort
 Namespace of the cxxomfort library.
 
 cxxomfort::fix
 Fixes for implementation issues in std.
 
 cxxomfort::cxxostd
 Backports made available by cxxomfort.
 

Functions

template<typename U >
constexpr U bit_width (U u) noexcept
 
template<typename U >
constexpr U bit_floor (U u) noexcept
 
template<typename U >
constexpr U bit_ceil (U u) noexcept
 

Detailed Description

Implementations and completion of names tied to bit.

<bit>: