The bitset header defines a template class and related procedures for representing and manipulating fixed-size sequences of bits.
The template class bitset can store a sequence consisting of a fixed number of bits.
In the bitset class each bit represents either the value zero (reset) or one (set), there is no negative position.You can toggle a bit to change the value.
When converting between an object of class bitset and an integral value, the integral value corresponding to two or more bits is the sum of their bit values.
The bitset functions can report three kinds of errors as exceptions.
See Exception Classes, for more information on exception classes.