std::basic_string::operator+=
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> basic_string& operator+=( const basic_string& str ); |
(1) | |
basic_string& operator+=( CharT ch ); |
(2) | |
basic_string& operator+=( CharT* s ); |
(3) | |
basic_string& operator+=( std::initializer_list<CharT> ilist ); |
(4) | (dal C++11) |
Aggiunge caratteri addinional alla stringa.
Original:
Appends addinional characters to the string.
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)
Aggiunge stringa
strOriginal:
Appends string
strThe 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)
Aggiunge carattere
chOriginal:
Appends character
chThe 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)
Aggiunge la stringa null-terminated caratteri puntata da
s. Original:
Appends the null-terminated character string pointed to by
s. 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)
Caratteri aggiunge nella lista di inizializzazione
ilist.Original:
Appends characters in the initializer list
ilist.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.
Parametri
| ch | - | valore del carattere da aggiungere
Original: character value to append The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| str | - | stringa da aggiungere
Original: string to append The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| s | - | puntatore ad una stringa con terminazione null di caratteri da aggiungere
Original: pointer to a null-terminated character string to append The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| init | - | lista di inizializzazione con i personaggi da aggiungere
Original: initializer list with the characters to append The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valore di ritorno
*this
Complessità
1)
lineare in dimensione
strOriginal:
linear in size of
strThe 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)
costante
Original:
constant
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)
lineare in dimensione
sOriginal:
linear in size of
sThe 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)
lineare in dimensione
initOriginal:
linear in size of
initThe 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.
Esempio
| This section is incomplete Reason: no example |
Vedi anche
| assegna caratteri ad una stringa (metodo pubblico) | |