[#bsl-slist-2constructor-01c] = xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::slist :relfileprefix: ../../ :mrdocs: Create a list as a copy of `__x` using the specified allocator. == Synopsis Declared in `<bslstp_slist.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- slist( xref:bsl/slist.adoc[_Self] const& __x, xref:bsl/slist/allocator_type.adoc[allocator_type] const& __a); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#