![]() |
Home | Libraries | People | FAQ | More |
Erase a range from the string.
iterator erase( const_iterator first, const_iterator last);
Erases the characters in the range {first, last)
.
{first, last}
shall be valid within
{[link json.ref.boost__json__string.data `data`](), [link json.ref.boost__json__string.data `data`]() + [link json.ref.boost__json__string.size `size`]()}
Strong guarantee.
All references, pointers, or iterators referring to contained elements are invalidated. Any past-the-end iterators are also invalidated.
An iterator referring to the character last
previously referred to, or end()
if one does not exist.
Name |
Description |
---|---|
|
An iterator representing the first character to erase. |
|
An iterator one past the last character to erase. |