0 or 1 true or false. The class emulates an array of bool elements but optimized for space.
The class template bitset represents a fixed size sequence of n bits.
Bitset. A bitset stores bits elements with only two possible values. 1 default constructor the object is initialized with zeros. The arduino programming language reference organized into functions variable and constant and structure keywords.
Bitsets can be manipulated by standard logic operators and converted to and from strings and. 2 initialization from integer value initializes the object with. Constructs a bitset container object.
This class implements a vector of bits that grows as needed. Each component of the bit set has a boolean value. A bitset is an array of bool but each boolean value is not stored separately instead bitset optimizes the space such that each bool takes 1 bit space only so space.
The bits of a bitset are indexed by nonnegative integers.