[#bsl-basic_string-0f3-insert-0a9]
= 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 each `CHAR&lowbar;TYPE` object in the specified `values` initializer list, and return an iterator to the first newly&hyphen;inserted character&period; If an exception is thrown (other than by the copy constructor, move constructor, assignment operator, and move assignment operator of `CHAR&lowbar;TYPE`), `&ast;this` is unaffected&period; The behavior is undefined unless `position` is an iterator in the range `&lsqb;begin() &period;&period; end()&rsqb;` (both endpoints included)&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,
    std::initializer&lowbar;list&lt;char32&lowbar;t&gt; values);
----


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