public member function
Check whether eofbit is set
true if the eofbit error state flag is set for the stream.
This flag is set by all standard input operations when the End-of-File is reached in the sequence associated with the stream.
true if the stream's eofbit error state flag is set (which signals that the End-of-File has been reached in an input operation).
Accesses the stream object.
Concurrent access to the same stream object may cause data races.
Strong guarantee: if an exception is thrown, there are no changes in the stream.