peek [C++ Reference]
Keywords: io,peek
Date: 2009-03-09T12:18:31-0700

[[peek]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## peek

Syntax:

        int istream::peek();

The function peek() is used with input streams, and returns the next character in the stream or EOF if the end of file is read. peek() does not remove the character from the stream.

Related Topics: get, putback

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •