std::basic_string::erase - 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. |
<metanoindex/>
<tbody> </tbody>
|
|
(1) | |
|
|
(2) | (fino al c++11) (dal C++11) |
|
|
(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.
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.
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.
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.
Parametri
| index | - | primo carattere da rimuovere Original: first character to remove The text has been machine-translated via Google Translate. |
| count | - | numero di caratteri da rimuovere Original: number of characters to remove The text has been machine-translated via Google Translate. |
| position | - | iteratore sul carattere da rimuovere Original: iterator to the character to remove The text has been machine-translated via Google Translate. |
| first, last | - | gamma dei caratteri da rimuovere Original: range of the characters to remove The text has been machine-translated via Google Translate. |
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.
Eccezioni
1) std::out_of_range if index > size().
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.