erase overloads
Declared in <bslstl_string.h>
Erase characters from this string.
iterator
erase(const_iterator position);
» more...
Erase the substring in the half-open range [first, last)].
iterator
erase(
const_iterator first,
const_iterator last);
» more...
Erase characters from this string.
basic_string&
erase(
size_type position = 0,
size_type numChars = npos);
» more...
| Name | Description |
|---|---|
| position | starting index |
| first | beginning of the range to erase |
| last | end of the range to erase |
| numChars | number of characters |