std::basic_string::erase
Aus cppreference.com
< cpp | string | basic string
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
basic_string& erase( size_type index =0, size_type count = npos ); | (1) | |
iterator erase( iterator position ); iterator erase( const_iterator position ); | (2) | (bis C + +11) (seit C++11) |
iterator erase( iterator first, iterator last ); iterator erase( const_iterator first, const_iterator last ); | (3) | (bis C + +11) (seit C++11) |
Entfernt angegebenen Zeichen aus dem String .
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)
Entfernt
count
Zeichen ab 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)
Entfernt das Zeichen an
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)
Entfernt das Zeichen im Bereich
[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.
Inhaltsverzeichnis |
[Bearbeiten]Parameter
index | - | erste Zeichen zu entfernen 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 | - | Anzahl der Zeichen zu entfernen 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 | - | Iterator auf den Charakter zu entfernen 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 | - | Bereich der Zeichen zu entfernen 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. |
[Bearbeiten]Rückgabewert
1)*this
2-3)
Iterator nach der letzten entfernte Zeichen .
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.
[Bearbeiten]Ausnahmen
2-3)
(None)
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.
[Bearbeiten]Siehe auch
löscht den Inhalt Original: clears the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) |