std::basic_string::erase
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& erase( size_type index = 0, size_type count = npos ); |
(1) | |
iterator erase( iterator position ); iterator erase( const_iterator position ); |
(2) | (fino al c++11) (dal C++11) |
iterator erase( iterator first, iterator last ); iterator erase( const_iterator first, const_iterator last ); |
(3) | (fino al c++11) (dal C++11) |
Rimuove caratteri specificati dalla stringa.
Original:
Removes specified characters from 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)
Rimuove i caratteri
count
a partire da index
.Original:
Removes
count
characters starting at index
.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.
2)
Rimuove il carattere
position
.Original:
Removes the character at
position
.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)
Rimuove il carattere nel campo
[first; last)
.Original:
Removes the character 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.
Indice |
[modifica] Parametri
index | - | primo carattere da rimuovere
Original: first character to remove The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
count | - | numero di caratteri da rimuovere
Original: number of characters to remove The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
position | - | iteratore sul carattere da rimuovere
Original: iterator to the character to remove The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
first, last | - | gamma dei caratteri da rimuovere
Original: range of the characters to remove 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
1) *this
2-3)
iteratore dopo l'ultimo carattere rimosso.
Original:
iterator following the last removed 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.
[modifica] Eccezioni
2-3)
(Nessuno)
Original:
(none)
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] Vedi anche
svuota il contenuto (metodo pubblico) |