...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Insert a string.
string& insert( std::size_t pos, string_view sv);
Inserts the string_view
sv
at the position pos
.
Strong guarantee.
All references, pointers, or iterators referring to contained elements are invalidated. Any past-the-end iterators are also invalidated.
*this
Name |
Description |
---|---|
|
The index to insert at. |
|
The |
Type |
Thrown On |
---|---|
|
|
|
|