std::basic_ostream::write
Da cppreference.com.
< cpp | io | basic ostream
![]() |
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. |
basic_ostream& write( const char_type* s, std::streamsize count ); |
||
Outputs characters from successive locations in the character array whose first element is pointed to by s
. Characters are inserted into the output sequence until one of the following occurs:
- exactly
count
characters are inserted - inserting into the output sequence fails (in which case setstate(badbit) is called)
Questa funzione è una funzione di output non formattato: è avviare l'esecuzione con la costruzione di un oggetto di tipo
sentry
, che svuota il buffer di uscita tie()'d, se necessario, e controlla gli errori del flusso. Dopo la costruzione, se i rendimenti sentinella oggetto false, la funzione restituisce senza tentare alcun output. Se viene generata un'eccezione durante l'uscita, poi ios :: badbit è impostato (l'eccezione è soppressa a meno exceptions()&badbit != 0, nel qual caso viene rilanciata)Original:
This function is an unformatted output function: it begin execution by constructing an object of type
sentry
, which flushes the tie()'d output buffers if necessary and checks the stream errors. After construction, if the sentry object returns false, the function returns without attempting any output. If an exception is thrown during output, then ios::badbit is set (the exception is suppressed unless exceptions()&badbit != 0, in which case it is rethrown)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
s | - | pointer to the character string to write |
count | - | number of characters to write |
[modifica] Valore di ritorno
*this
[modifica] Note
Questa funzione non è sovraccarico per i tipi di signed char o unsigned char, a differenza del