basic_stringstream::str

basic_string<E, T, A> str() const;
void str(basic_string<E, T, A>& x);

The first member function returns rdbuf()-> str(). The second member function calls rdbuf()-> str(x).