eof

Used to return end of file. The value returned from eof() can be used to test against the return value of basic_istream functions such as get() to determine when another character can not be returned. It is also used to mean "not a character" on input to various functions such as basic_ostream::overflow.

  static int_type eof();