std::basic_streambuf::overflow
Da cppreference.com.
< cpp | io | basic streambuf
Versione del 2 lug 2013 alle 13:31 di P12bot (Discussione | contributi)
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
int_type overflow( int_type ch = traits::eof() ); |
||
Assicura che non vi spazio nell'area messo per almeno un carattere salvando alcuni sottosequenza iniziale di caratteri a partire
pbase()
alla sequenza di uscita e l'aggiornamento dei puntatori alla zona di uscita (se necessario). Se non è ch
traits::eof() (cioè traits::eq_int_type(c, traits::eof()) != true), si sia messo alla zona di uscita o direttamente salvato alla sequenza di uscita.Original:
Ensures that there space at the put area for at least one character by saving some initial subsequence of characters starting at
pbase()
to the output sequence and updating the pointers to the output area (if needed). If ch
is not traits::eof() (i.e. traits::eq_int_type(c, traits::eof()) != true), it is either put to the output area or directly saved to the output sequence.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
La funzione può aggiornare
pptr
, epptr
e pback
puntatori per definire la posizione di scrivere più dati. In caso di fallimento, la funzione fa sì che sia pptr() == nullptr o pptr() == epptr.Original:
The function may update
pptr
, epptr
and pback
pointers to define the location to write more data. On failure, the function ensures that either pptr() == nullptr or pptr() == epptr.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
La versione della classe base della funzione non fa nulla. Le classi derivate possono eseguire l'override di questa funzione per consentire gli aggiornamenti alla zona get in caso di esaurimento.
Original:
The base class version of the function does nothing. The derived classes may override this function to allow updates to the get area in the case of exhaustion.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Indice |
[modifica] Parametri
(Nessuno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Valore di ritorno
Restituisce il valore specificato non è uguale a traits::eof() in caso di successo, traits::eof() in caso di fallimento.
Original:
Returns unspecified value not equal to traits::eof() on success, traits::eof() on failure.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
La versione della classe base della funzione restituisce traits::eof().
Original:
The base class version of the function returns traits::eof().
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Nota
Il
sputc()
e sputn()
chiamare questa funzione in caso di un overflow (pptr() == nullptr o pptr() >= epptr()).Original:
The
sputc()
and sputn()
call this function in case of an overflow (pptr() == nullptr or pptr() >= epptr()).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[modifica] Esempio
This section is incomplete Reason: no example |
[modifica] Vedi anche
[virtuale] |
legge i caratteri della sequenza di input associato alla zona get e fa avanzare il puntatore successivo Original: reads characters from the associated input sequence to the get area and advances the next pointer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuale protetto funzione membro) |
[virtuale] |
legge caratteri dalla sequenza di input associato alla zona get Original: reads characters from the associated input sequence to the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuale protetto funzione membro) |
[virtuale] |
scrive i caratteri nel file associato dalla zona put Original: writes characters to the associated file from the put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuale protetto funzione of std::basic_filebuf membro)
|
[virtuale] |
aggiunge un carattere alla sequenza di uscita Original: appends a character to the output sequence The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuale protetto funzione of std::basic_stringbuf membro)
|
[virtuale] |
aggiunge un carattere alla sequenza di uscita, possono riassegnare o inizialmente allocare il buffer se congelato e non dinamica Original: appends a character to the output sequence, may reallocate or initially allocate the buffer if dynamic and not frozen The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtuale protetto funzione of std::strstreambuf membro)
|