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.
Display all entries for C++ Bitsets on one
page, or view entries individually:
| Bitset Constructors |
create new bitsets |
| Bitset Operators |
compare and assign bitsets |
| any |
true if any bits are set |
| count |
returns the number of set bits |
| flip |
reverses the bitset |
| none |
true if no bits are set |
| reset |
sets bits to zero |
| set |
sets bits |
| size |
number of bits that the bitset can
hold |
| test |
returns the value of a given
bit |
| to_string |
string representation of the
bitset |
| to_ulong |
returns an integer representation
of the bitset |