|
JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
|
POD-compatible fixed-size bitflags structure.Generic fallback specialization for non-native sizes (e.g. 24, 120 bits, etc). More...
#include <jh/pods/bits.h>
POD-compatible fixed-size bitflags structure.Generic fallback specialization for non-native sizes (e.g. 24, 120 bits, etc).
| N | Number of bits. Must be divisible by 8 and ≤ 32'768. |
Storage strategy:
.set(), .clear(), .flip(), .has() are unchecked |, &, ^, ~) supported .count() returns the number of bits set .set_all() / .reset_all() / .flip_all() available .bits member (native) or .data (byte-array) std::memcpy or binary serialization static_assert contexts