| cppreference.com -> C++ Bitsets |
C++ Bitsets give the programmer a set of bits as a data structure. Bitsets can be manipulated by various binary operators such as logical AND, OR, and so on.
| Constructors | create new bitsets |
| Operators | compare and assign bitsets |
| any() | true if any bits are set |
| count() | how many bits are set |
| flip() | reverses the bitset |
| none() | true if no bits are set |
| reset() | clears bits |
| set() | sets bits |
| size() | number of bits that the bitset can hold |
| test() | state of a given bit |
| to_string() | string representation of the bitset |
| to_ulong() | integer representation of the bitset |