The function returns true
if the eofbit
stream's error flag has been set by a previous i/o operation. This flag is set by all standard input operations when the End Of File is reached in the sequence associated with the stream.
stream's state flag is set (which signals that the End-of-File has been reached).
Basic template member declaration
( basic_ios<charT,traits> )
|ios::good|| Check if the state of the stream is good for i/o operations. (public member function)|
|ios::fail|| Check if either failbit or badbit is set (public member function)|
|ios::bad|| Check if badbit is set (public member function)|
|ios::clear|| Set error state flags (public member function)|