std::basic_istream::peek

From Cppreference

Jump to: navigation, search
int_type peek();

Reads the next character from the input stream without extracting it.

Contents

[edit] Parameters

(none)

[edit] Return value

the next character if good() == true, Traits::eof() otherwise.

[edit] Example

[edit] See also

get
extracts characters
(public member function)
unget
unextracts a character
(public member function)