Insert characters into this string.
Synopsis
Declared in <bslstl_string.h>
iterator
insert(
const_iterator position,
CHAR_TYPE character);
Description
Insert the specified character at the specified position in this string, and return an iterator providing modifiable access to the inserted character. The behavior is undefined unless position is a valid iterator on this string.
Return Value
iterator referring to the first inserted character
Parameters
Name |
Description |
position |
starting index |
character |
character value |
Created with MrDocs