[#bsl-slist-insert-0f]
= xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::insert
:relfileprefix: ../../
:mrdocs:

Insert the specified range before `&lowbar;&lowbar;pos`&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;slist&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;InIter&gt;
void
insert(
    xref:bsl/slist/iterator.adoc[iterator] &lowbar;&lowbar;pos,
    &lowbar;InIter &lowbar;&lowbar;first,
    &lowbar;InIter &lowbar;&lowbar;last);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;pos*
| position before which to insert
| *&lowbar;&lowbar;first*
| beginning of the range to insert
| *&lowbar;&lowbar;last*
| end of the range to insert (exclusive)
|===


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