...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 basic_static_string& insert( size_type index, const_pointer s);
Inserts the null-terminated character string pointed to by s
of length count
at the position index
where count
is traits_type::length(s)
.
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 string to insert. |
Type |
Thrown On |
---|---|
|
|
|
|