std::strstreambuf
Da cppreference.com.
|
|
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. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <strstream>
|
||
class strstreambuf : public std::basic_streambuf<char> |
(deprecato) | |
std::strstreambuf std::basic_streambuf cui è associato sequenza di caratteri è un array di caratteri, che può essere costante (ad esempio una stringa), ma non modifyable dinamici (per esempio una pila-assegnati array), o dinamico, nel qual caso il std::strstreambuf può essere consentito di riassegnare la matrice come necessari per il posizionamento di uscita (ad esempio, chiamando delete[] e new[] o forniti dall'utente funzioni).Original:
std::strstreambuf is a std::basic_streambuf whose associated character sequence is a character array, which may be constant (e.g. a string literal), modifyable but not dynamic (e.g. a stack-allocated array), or dynamic, in which case the std::strstreambuf may be allowed to reallocate the array as necessary to accomodate output (e.g. by calling delete[] and new[] or user-provided functions).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.
Applicazione tipica di un
std::strstreambuf contiene quattro membri privati di dati:Original:
Typical implementation of a
std::strstreambuf holds four private data members: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.
1)
buffer di stato, un tipo di maschera di bit che può rappresentare una qualsiasi combinazione delle quattro valori "attribuiti" (distruttore si deallocare), "costante" (uscita non consentito), "dinamico" (uscita può ripartire), o "congelato" (uscita, deallocazione , la riassegnazione non sono ammessi)
Original:
buffer state, a bitmask type which can represent any combination of the four values "allocated" (destructor will deallocate), "constant" (output not allowed), "dynamic" (output may reallocate), or "frozen" (output, deallocation, reallocation are not allowed)
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.
2)
dimensione del buffer allocato
Original:
allocated buffer size
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.
3)
puntatore fornito dall'utente funzione di allocazione
Original:
pointer to user-provided allocation function
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.
4)
puntatore fornito dall'utente funzione deallocazione.
Original:
pointer to user-provided deallocation function.
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.