|
C Container Collection (CCC)
|
#include <private_bitset.h>
A Bitset is a contiguous array of fixed size integers. These aid in cache friendly storage and operations.
By default a bit set is initialized with size equal to capacity but the user may select to initialize a 0 sized bit set with non-zero capacity for pushing bits back dynamically.
Data Fields | |
| unsigned * | blocks |
| size_t | count |
| size_t | capacity |
| unsigned* CCC_Bitset::blocks |
The array of bit blocks, a platform defined standard bit width.
| size_t CCC_Bitset::capacity |
The number of bits capable of being tracked in the bit block array.
| size_t CCC_Bitset::count |
The number of active bits in the set available for reads and writes.