[#bsl-slist-2constructor-0d]
= xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::slist
:relfileprefix: ../../
:mrdocs:

Create a list from the specified iterator range&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;InputIterator&gt;
slist(
    &lowbar;InputIterator &lowbar;&lowbar;first,
    &lowbar;InputIterator &lowbar;&lowbar;last,
    xref:bsl/slist/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a = allocator&lowbar;type());
----


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