bool failed() const throw();
The member function returns true only if no insertion into the output stream buffer has failed earlier.