basic_istream& unget();
true
). Then (if good), it calls sungetc on its associated stream buffer object (if any). Finally, it destroys the sentry object before returning.*this
).flag | error |
---|---|
eofbit | - |
failbit | The construction of sentry failed (such as when the stream state was not good before the call). |
badbit | Either the internal call to sungetc failed, or another error occurred on the stream (such as when the function catches an exception thrown by an internal operation, or when no stream buffer is associated with the stream). When set, the integrity of the stream may have been affected. |
|
|
Please, enter a number or a word: 7791 You entered a number: 7791 |