bitset::to_string

string to_string() const;

The member function constructs str, an object of class string. For each bit in the bit sequence, the function appends 1 if the bit is set, otherwise 0. The last element appended to str corresponds to bit position zero. The function returns str.

In this implementation, if a translator does not support member template functions, the template:

template<class E, class T, class A>
    string to_string() const;

is replaced by:

string to_string() const;