![]() |
Home | Libraries | People | FAQ | More |
Insert a character.
string& insert( size_type pos, char ch);
Inserts the character ch
before the character at index 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 character to insert. |
Type |
Thrown On |
---|---|
|
|
|
|