|
istream::ungetpublic member function
istream& unget ( ); Decrement get pointer Decrements the internal get pointer by one, making the last character extracted from the input sequence available again as the next character to be read from the stream.The function effectively calls the sungetc member function of the streambuf object associated to the stream. A subsequent call to member gcount will return zero. ParametersnoneReturn ValueThe function returns *this.Errors are signaled by modifying the internal state flags:
Additionally, in any of these cases, if the appropriate flag has been set with member function ios::exceptions, an exception of type ios_base::failure is thrown. Example
Basic template member declaration(basic_istream<charT,traits>)
See also
|