std::basic_string::append
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& append( size_type count, const CharT& ch ); | (1) | |
basic_string& append(const basic_string& str ); | (2) | |
basic_string& append(const basic_string& str, size_type pos, | (3) | |
basic_string& append(const CharT* s, size_type count ); | (4) | |
basic_string& append(const CharT* s ); | (5) | |
template<class InputIt > basic_string& append( InputIt first, InputIt last ); | (6) | |
basic_string& append(std::initializer_list<CharT> ilist ); | (7) | (dal C++11) |
Aggiunge caratteri aggiuntivi per la stringa.
1) Original:
Appends additional 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
2) count
copie di ch
carattereOriginal:
Appends
count
copies of 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 stringa
3) 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 un
4) [pos, pos+count)
sottostringa di str
. Se la sottostringa richiesto dura oltre la fine della stringa, o se count == npos, la sottostringa allegato è [pos, size())
. Se pos >= str.size(), std::out_of_range viene gettato. Original:
Appends a substring
[pos, pos+count)
of str
. If the requested substring lasts past the end of the string, or if count == npos, the appended substring is [pos, size())
. If pos >= str.size(), std::out_of_range is thrown. 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 i caratteri
5) count
primi stringa puntata da s
. s
può contenere caratteri nulli.Original:
Appends the first
count
characters of character string pointed to by s
. s
can contain null characters.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
6) s
. La lunghezza della stringa è determinata dal carattere null prima. Original:
Appends the null-terminated character string pointed to by
s
. The length of the string is determined by the first null character. 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 nel
7) [first, last)
gammaOriginal:
Appends characters in the range
[first, last)
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
count | - | numero di caratteri da aggiungere Original: number of 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. |
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. |
first, last | - | intervallo di caratteri da aggiungere Original: range of 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. |
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 alla stringa di caratteri da aggiungere Original: pointer to the 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. |
Type requirements | ||
-InputIt must meet the requirements of InputIterator . |
[modifica]Valore di ritorno
*this
[modifica]Complessità
1)lineare in
2) count
Original:
linear in
count
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
3-4) 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.
lineare in
5) count
Original:
linear in
count
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
6) 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 di distanza tra
7) first
e last
Original:
linear in distance between
first
and last
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
aggiunge caratteri in coda (metodo pubblico) |