14 #include "tools/NoCopy.h"
39 void grow(
size_t minimum);
49 void clear(
size_t bit);
54 void set(
size_t bit,
bool value);
59 bool test(
size_t bit)
const;
78 PROHIBIT_DEFAULT_COPY(
BitSet);
size_t capacity() const
Number of bits in Bitset.
Definition: Bitset.h:71
size_t count() const
Number of bits set.
bool empty() const
Whole bitset empty?
bool test(size_t bit) const
Check individual bit.
std::string to_string() const
Return 001000.... type of string.
void grow(size_t minimum)
Grow so that size is at least minimum.
void set(size_t bit)
Set bit to 1.
, .Reasons for reinventing this type of class:
Definition: Bitset.h:23
bool any() const
Any bit set?
void clear(size_t bit)
Clear bit, i.e.