std::basic_istream::putback

From Cppreference

Jump to: navigation, search
basic_istream& putback( char_type ch );

Puts the character ch back to the input stream so the next extracted character will be ch.

Contents

[edit] Parameters

(none)

[edit] Return value

*this

[edit] Example

[edit] See also

unget
unextracts a character
(public member function)
peek
reads the next character without extracting it
(public member function)