Espaços nominais
Variantes
Acções

std::basic_filebuf::pbackfail

Da cppreference.com
< cpp‎ | io‎ | basic filebuf

 
 
De entrada / saída da biblioteca
I / O manipuladores
C estilo de I / O
Buffers
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf(obsoleta)
Streams
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Abstrações
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
File I / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
Cordas I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
Matriz de I / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream(obsoleta)
ostrstream(obsoleta)
strstream(obsoleta)
Tipos
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
Interface de categoria de erro
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category(C++11)
io_errc(C++11)
 
std::basic_filebuf
Membro funções públicas
Original:
Public member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_filebuf::basic_filebuf
basic_filebuf::~basic_filebuf
basic_filebuf::operator=(C++11)
basic_filebuf::swap(C++11)
basic_filebuf::is_open
basic_filebuf::open
basic_filebuf::close
Protegido funções de membro
Original:
Protected member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_filebuf::showmanyc
basic_filebuf::underflow
basic_filebuf::uflow
basic_filebuf::pbackfail
basic_filebuf::overflow
basic_filebuf::setbuf
basic_filebuf::seekoff
basic_filebuf::seekpos
basic_filebuf::sync
basic_filebuf::imbue
Não-membros funções
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
swap(std::basic_filebuf)(C++11)
 
protected:
virtual int_type pbackfail( int_type c = Traits::eof() )
Coloca o carácter c de volta para a área de get, em uma das três formas:
Original:
Puts the character c back into the get area, in one of the three ways:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Se c não é o carácter EOF, conforme determinado ligando Traits::eq_int_type(c,traits::eof()) e se existe espaço para um putback, e se c é exactamente o caractere que foi mais recentemente ler a partir da área get, conforme determinado por Traits::eq(to_char_type(c),gptr()[-1]), em seguida, simplesmente por um gptr() decrementa.
Original:
If c is not the EOF character, as determined by calling Traits::eq_int_type(c,traits::eof()) and if there is room for a putback, and if c is exactly the character that was most recently read from the get area, as determined by Traits::eq(to_char_type(c),gptr()[-1]), then simply decrements gptr() by one.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Se c não é o personagem EOF, como determinado chamando Traits::eq_int_type(c,traits::eof()) e se há espaço para uma putback, e se o tampão é permitido modificar o GET área, diminui gptr() e escreve c para lá. Note-se que esta não modifica a seqüência de caracteres associada (o arquivo), mas apenas o começo área na memória.
Original:
If c is not the EOF character, as determined by calling Traits::eq_int_type(c,traits::eof()) and if there is room for a putback, and if the buffer is allowed to modify the get area, decrements gptr() and writes c to there. Note that this does not modify the associated character sequence (the file), but only the get area in memory.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Se c é o personagem EOF (Traits::eq_int_type(c,traits::eof()) retornos true), e se há espaço para uma putback, diminui gptr(). Isto tem o efeito de tornar o último caracter lido disponível para a leitura, mais uma vez.
Original:
If c is the EOF character (Traits::eq_int_type(c,traits::eof()) returns true), and if there is room for a putback, decrements gptr(). This has the effect of making the last character read available for reading once again.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Se o arquivo não está aberto (is_open()==false, esta função retorna Traits::eof() imediatamente.
Original:
If the file is not open (is_open()==false, this function returns Traits::eof() immediately.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Índice

[editar] Parâmetros

c -
o personagem putback, ou eof
Original:
the character to putback, or eof
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Valor de retorno

1-2) c

3) Traits::not_eof(c)

Traits::eof() em caso de falha.
Original:
Traits::eof() in case of failure.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Exemplo

[editar] Veja também

[virtual]
coloca um caractere de volta para a sequência de entrada, possivelmente modificando a sequência de entrada
Original:
puts a character back into the input sequence, possibly modifying the input sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(virtual protegido of std::basic_streambuf função de membro) [edit]
move o ponteiro próximo da sequência de entrada volta a um
Original:
moves the next pointer in the input sequence back by one
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(of std::basic_streambuf função pública membro) [edit]
coloca um personagem de volta na seqüência de entrada
Original:
puts one character back in the input sequence
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(of std::basic_streambuf função pública membro) [edit]
unextracts um personagem
Original:
unextracts a character
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(of std::basic_istream função pública membro) [edit]
coloca personagem em fluxo de entrada
Original:
puts character into input stream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(of std::basic_istream função pública membro) [edit]