cpp/iterator/ostreambuf iterator/failed

Returns if the iterator encountered the end-of-file condition, that is, if an earlier call to std (made by ) returned.

Parameters
(none)

Return value
if this iterator has encountered the end-of-file condition on output, otherwise.