ios::eof

int eof() const;

Return Value

Returns a nonzero value if end of file has been reached. This is the same as setting the eofbit error flag.

ios OverviewAbstract Stream Base Class