44 #ifndef BitSet_Included
45 #define BitSet_Included
59 template<
size_t TMaxBits>
class BitSet
98 return set(pos,
false);
104 for (
size_t i = 0; i < TMaxBits; i++)
121 inline bool test(
size_t pos)
const
146 return count() == TMaxBits;
154 for (
size_t i = 0; i < TMaxBits; i++)
bool test(size_t pos) const
BitSet & set(size_t pos, bool val=true)
BitSet & reset(size_t pos)
BitSet & flip(size_t pos)