Template Class Bitset

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.




This Information Center content is based on CWEWLCPPREF Rev 10.5, 09/2013, which can be downloaded from www.freescale.com.