Insert at the specified position in this string the specified numChars copies of the specified character, and return an iterator providing modifiable access to the first inserted character, or a non‐`const` copy of position if 0 == numChars. The behavior is undefined unless position is a valid iterator on this string.

Synopsis

Declared in <bslstl_string.h>

iterator
insert(
    const_iterator position,
    size_type numChars,
    CHAR_TYPE character);

Created with MrDocs