Standard C++ Library User Guide and Tutorial

The member function to_string() converts a bitset into an object of type string. The string will
have as many characters as the bitset. Each zero bit will correspond to the character 0, while each
one bit will be represented by the character 1.