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

Create a list as a copy of `&lowbar;&lowbar;x` using the specified allocator&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
slist(
    xref:bsl/slist.adoc[&lowbar;Self] const& &lowbar;&lowbar;x,
    xref:bsl/slist/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a);
----


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