is there a function for a string like istream::putback in C++?

Viewed 85

I know that an istream::putback function lets us put the last character we got from an input stream back into the input stream.

is there a similar function for a string?

if not how do I put the last character I got from an input string back to the input string?

Thanks.

0 Answers
Related