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
Insert into the string.
constexpr iterator insert( const_iterator pos, value_type ch);
Inserts the character ch
before the character pointed by pos.
posshall be vaild 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 which refers to the first inserted character or pos if no characters were inserted
|
Name |
Description |
|---|---|
|
|
The index to insert at. |
|
|
The character to insert. |
|
Type |
Thrown On |
|---|---|
|
|
|