Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Erase from the string.
constexpr iterator erase( const_iterator pos);
Erases the character at pos.
posshall be valid within
{data(),
data()
+ 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 character immediately following the erased character,
or end()
if one does not exist.
|
Name |
Description |
|---|---|
|
|
An iterator referring to the character to erase. |