jaulib v1.4.0-2-g788cf73
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
bitfield.hpp File Reference
#include <unistd.h>
#include <array>
#include <climits>
#include <cmath>
#include <cstring>
#include <limits>
#include <string_view>
#include <jau/basic_types.hpp>
#include <jau/byte_util.hpp>
#include <jau/cpp_lang_util.hpp>
#include <jau/int_math.hpp>
#include <jau/int_math_ct.hpp>
#include <jau/int_types.hpp>
#include <jau/string_util.hpp>
#include <jau/type_concepts.hpp>
Include dependency graph for bitfield.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  jau::bitfield_t< StorageType, BitSize >
 Simple statically sized bitfield template for efficient bit storage access in O(1). More...
 

Namespaces

namespace  jau
 __pack(...): Produces MSVC, clang and gcc compatible lead-in and -out macros.
 

Typedefs

template<size_t BitSize>
using jau::bitfield = bitfield_t<unsigned long, BitSize>
 Simple bitfield template for efficient bit storage access in O(1).
 

Functions

template<jau::req::unsigned_integral StorageType, size_t BitSize>
requires requires (StorageType) { sizeof(StorageType) <= sizeof(size_t); }
std::ostream & jau::operator<< (std::ostream &out, const bitfield_t< StorageType, BitSize > &v)