basic_streambuf::sungetc

int_type sungetc();

If a putback position is available, the member function decrements the next pointer for the input buffer and returns T::to_int_type( *gptr()). Otherwise it returns pbackfail().