I/O manipulators | ||||
Print functions(C++23) | ||||
C-style I/O | ||||
Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
Streams | ||||
Abstractions | ||||
File I/O | ||||
String I/O | ||||
Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
Synchronized Output | ||||
(C++20) | ||||
Types | ||||
Error category interface | ||||
(C++11) | ||||
(C++11) |
Public member functions | ||||
(C++11) | ||||
(C++11) | ||||
(C++20) | ||||
Protected member functions | ||||
basic_stringbuf::pbackfail | ||||
Non-member functions | ||||
(C++11) | ||||
Exposition-only member functions | ||||
protected: virtual int_type pbackfail( int_type c= Traits::eof()) | ||
This protected virtual function is called by the public functionsbasic_streambuf::sungetc andbasic_streambuf::sputbackc (which, in turn, are called bybasic_istream::unget andbasic_istream::putback).
pbackfail()
is called with no arguments or withTraits::eof() as the argument)pbackfail()
is called with the character that needs to be put back), in which casec
, as determined byTraits::eq(to_char_type(c), gptr()[-1]), then simply decrementsbasic_streambuf::gptr().c
to the location pointed to gptr() after adjustment.Contents |
c | - | the character to put back, or Traits::eof() to indicate that backing up of the get area is requested |
c on success except ifc
wasTraits::eof(), in which caseTraits::not_eof(c) is returned.
Traits::eof() on failure.
This section is incomplete Reason: no example |
[virtual] | puts a character back into the input sequence, possibly modifying the input sequence (virtual protected member function of std::basic_streambuf<CharT,Traits> )[edit] |
moves the next pointer in the input sequence back by one (public member function of std::basic_streambuf<CharT,Traits> )[edit] | |
puts one character back in the input sequence (public member function of std::basic_streambuf<CharT,Traits> )[edit] | |
unextracts a character (public member function of std::basic_istream<CharT,Traits> )[edit] | |
puts a character into input stream (public member function of std::basic_istream<CharT,Traits> )[edit] |