bsl::basic_stringbuf::pbackfail

pbackfail overloads

Synopses

Declared in <bslstl_stringbuf.h>

Tries to back up the input sequence.

virtual
int_type
pbackfail(int_type __c = traits_type::eof());
» more...

Put back a character into the input sequence.

virtual
basic_stringbuf<CHAR_TYPE, CHAR_TRAITS, ALLOCATOR>::int_type
pbackfail(int_type character = traits_type::eof());
» more...

Return Value

  • eof() on failure, some other value on success
  • the character put back, or traits_type::eof() on failure

Parameters

NameDescription
__cThe character to be inserted back into the sequence.
charactercharacter to put back, or traits_type::eof()

Postconditions

  • The constraints of gptr(), eback(), and pptr() are the same as for underflow().