A
basic_string whose contents are used to initialize the
bitset:
The constructor parses the string reading at most
n characters beginning at
pos, interpreting the character values
'0'
and
'1'
as zero and one, respectively.
Note that the least significant bit is represented by the last character read (not the first); Thus, the first bit position is read from the right-most character, and the following bits use the characters preceding this, from right to left.
If this sequence is shorter than the
bitset size, the remaining bit positions are initialized to zero.
A
basic_string or
C-string whose contents are used to initialize the
bitset:
The constructor parses the string reading at most
n characters (beginning at
pos for
(3)), interpreting the character values specified as arguments
zero and
one as zeros and ones, respectively.
Note that the least significant bit is represented by the last character read (not the first); Thus, the first bit position is read from the right-most character, and the following bits use the characters preceding this, from right to left.
If this sequence is shorter than the
bitset size, the remaining bit positions are initialized to zero.