|
istream::putbackpublic member function
istream& putback ( char c ); Put character back Decrements the internal get pointer by one, and c becomes the character to be read at that position by the next input operation.The function effectively calls the sputbackc member function of the streambuf object associated to the stream. A subsequent call to member gcount will return zero. Parameters
Return ValueThe function returns *thisErrors 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
|