cpp/utility/bitset/bitset

Constructs a new bitset from one of several optional data sources:

@1@ Default constructor. Constructs a bitset with all bits set to zero.

@2@ Constructs a bitset, initializing the first (rightmost, least significant) bit positions to the corresponding bit values of, where  is the smaller of If  is less than , the remaining bit positions are initialized to zeroes.
 * , and
 * the number of bits in the value representation of.
 * For typical implementations of, it is.

@3@ Constructs a bitset using the characters in the std. An optional starting position and length  can be provided, as well as characters denoting alternate values for set  and unset  bits. is used to compare the character values.

@@The effective length of the initializing string is.

@@If, this constructor throws std. If any character examined in is not  or, this constructor throws std.

@4@ Similar to (3), but uses a instead of a std. Equivalent to

Exceptions
@3@ std if, std if any character is not or. @4@ std if any character is not or.