|
bitset::to_stringpublic member function
template <class charT, class traits, class Allocator> basic_string<charT,traits,Allocator> to_string() const; Convert to string Constructs a basic_string object that represents the bitset as a succession of zeros and ones.Notice that this function template uses the template parameters to define the return type. Therefore, they are not implicitly deduced by the compiler. ParametersnoneReturn valueString representing the bitset.Example
Output:
See also
|