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

This is the documentation for a snapshot of the develop branch, built from commit 0d1ff7cb09.
PrevUpHomeNext
basic_static_string::erase (2 of 3 overloads)

Erase from the string.

Synopsis
constexpr iterator
erase(
    const_iterator pos);
Description

Erases the character at pos.

Preconditions

posshall be valid within {data(), data() + size()}

Exception Safety

Strong guarantee.

Remarks

All references, pointers, or iterators referring to contained elements are invalidated. Any past-the-end iterators are also invalidated.

Return Value

An iterator referring to character immediately following the erased character, or end() if one does not exist.

Parameters

Name

Description

pos

An iterator referring to the character to erase.


PrevUpHomeNext