std::basic_string::operator+=
Da cppreference.com.
< cpp | string | basic string
![]() | 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_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.
1) 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.
Aggiunge stringa
2) str
Original:
Appends string
str
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.
Aggiunge carattere
3) ch
Original:
Appends character
ch
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.
Aggiunge la stringa null-terminated caratteri puntata da
4) 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.
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.
Indice |
[modifica]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. |
[modifica]Valore di ritorno
*this
[modifica]Complessità
1)lineare in dimensione
2) str
Original:
linear in size of
str
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.
costante
3) 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.
lineare in dimensione
4) s
Original:
linear in size of
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.
lineare in dimensione
init
Original:
linear in size of
init
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
assegna caratteri ad una stringa (metodo pubblico) |