Put back the specified character if it matches the previous character.
Synopsis
Declared in <bdlsb_fixedmeminput.h>
FixedMemInput::int_type
sputbackc(char c);
Description
Move the current read position back one character if the current read position is not at the beginning of the buffer and the previous position contains the specified character c, and return that character. Otherwise, return traits_type::eof() and do not move the current read position.
Return Value
c on success, or traits_type::eof() on failure
Parameters
Name |
Description |
c |
character that must match the previous character in the buffer |
Created with MrDocs