cpp/io/basic istream/putback

Puts the character back to the input stream so the next extracted character will be.

First clears, then behaves as. After constructing and checking the sentry object, if is not null, calls, which calls  if  does not equal the most recently extracted character.

If is null or if  returns, calls.

In any case, sets the counter to zero.