std::bitset::to_string
From Cppreference
template<
class CharT = char, |
||
Converts the contents of the bitset to a string. Uses zero to represent bits with value of false and one to represent bits with value of true.
The resulting string contains N characters with the first character corresponds to the last (N-1th) bit and the last character corresponding to the first bit.
Contents |
[edit] Parameters
zero | - | character to use to represent false |
one | - | character to use to represent true |
[edit] Return value
the converted string
[edit] Example
This section is incomplete |
[edit] See also
|
returns an unsigned long integer representation of the data (public member function) |
||
|
returns an unsigned long long integer representation of the data (public member function) |