This is the work horse for reading and interpreting input. operator >> is implemented in this class for various types. Other input specific operations, such as seekg, sync, read and getline are also supplied by istream.
Note that cin is an istream, not an ifstream. This is because cin does not need to be opened or closed.