Insert characters into this string.
Declared in <bslstl_string.h>
basic_string&
insert(
size_type position,
basic_string const& other);
Insert at the specified position in this string a copy of the specified other string, and return a reference providing modifiable access to this string. Throw out_of_range if position > length().
reference providing modifiable access to this string
| Name | Description |
|---|---|
| position | starting index |
| other | string or character sequence to compare or use |