Insert characters into this string.
Declared in <bslstl_string.h>
basic_string&
insert(
size_type position,
size_type numChars,
CHAR_TYPE character);
Insert at the specified position in this string the specified numChars copies of the specified character, 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 |
| numChars | number of characters |
| character | character value |