◐ Shell
clean mode source ↗

std::basic_string::operator+= - cppreference.com

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.

Click here for the English version of this page

<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.

1)

Aggiunge stringa 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.

2)

Aggiunge carattere 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.

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.

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.

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 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.

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.

3)

lineare in dimensione 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.

4)

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.

Esempio

Vedi anche