basic_streambuf::sungetc
basic_streambuf::sungetc
To restore a character extracted.
int_type sungetc();
The function
sungetc() restores the previously extracted character. After the operation, the get pointer references the last character extracted.
If successful, returns a pointer to the
get pointer as an
int_type otherwise returns
pbackfail(c).
For an example of streambuf::sungetc() usage refer to streambuf::sputbackc()