Insert characters into this string.
Synopsis
Declared in <bslstl_string.h>
basic_string&
insert(
size_type position,
basic_string const& other);
Description
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().
Return Value
reference providing modifiable access to this string
Parameters
Name |
Description |
position |
starting index |
other |
string or character sequence to compare or use |
Created with MrDocs