Table of Contents
Previous Section Next Section

good

#include <iostream>bool good() const;

The good( ) function is a member of ios.

The good( ) function returns true if no I/O errors have occurred in the associated stream; otherwise, it returns false.

Related functions are bad( ), fail( ), eof( ), clear( ), and rdstate( ).


Table of Contents
Previous Section Next Section