bsl::basic_stringbuf::sputbackc

Pushing characters back into the input stream.

Synopsis

Declared in <bslstl_stringbuf.h>

int_type
sputbackc(char_type __c);

Description

Similar to sungetc(), but __c is pushed onto the stream instead of the previous character. If successful, the next character fetched from the input stream will be __c.

Return Value

The previous character, if possible.

Parameters

NameDescription
__cThe character to push back.