to_string

Gives the string as zero and ones that the bitset represents.

  template <class charT, class traits, class Allocator>
  basic_string<charT, traits, Allocator> to_string() const;
  
Remarks

Returns a string that the bitset represents.