#include <ShBitSet.hpp>
Public Member Functions | |
ShBitSet () | |
Construct a bitset with size bits. | |
ShBitSet (std::size_t size) | |
ShBitSet (const ShBitSet &other) | |
ShBitSet & | operator= (const ShBitSet &other) |
ShBitSet & | operator &= (const ShBitSet &other) |
ShBitSet & | operator|= (const ShBitSet &other) |
ShBitSet & | operator^= (const ShBitSet &other) |
ShBitSet | operator & (const ShBitSet &other) const |
ShBitSet | operator| (const ShBitSet &other) const |
ShBitSet | operator^ (const ShBitSet &other) const |
ShBitSet | operator~ () const |
bool | operator== (const ShBitSet &other) const |
bool | operator!= (const ShBitSet &other) const |
bool | full () const |
bool | empty () const |
std::size_t | size () const |
bool | operator[] (std::size_t i) const |
ShBitRef | operator[] (std::size_t i) |
The best of both worlds from std::vector<bool> and std::bitset. Run-time sized bitset with all the bit operations one may need.
Definition at line 62 of file ShBitSet.hpp.
|
Construct a bitset with size bits. By default all bits are set to 0.
Definition at line 73 of file ShBitSet.cpp. |