[#bsl-basic_string-0f3-insert-0a6]
= xref:bsl.adoc[bsl]::xref:bsl/basic_string-0f3.adoc[basic&lowbar;string&lt;char32&lowbar;t&gt;]::insert
:relfileprefix: ../../
:mrdocs:

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&hyphen;`const` copy of `position` if `0 &equals;&equals; numChars`&period; The behavior is undefined unless `position` is a valid iterator on this string&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;string&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/basic_string-0f3/iterator.adoc[iterator]
insert(
    xref:bsl/basic_string-0f3/const_iterator.adoc[const&lowbar;iterator] position,
    xref:bsl/basic_string-0f3/size_type.adoc[size&lowbar;type] numChars,
    char32&lowbar;t character);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
