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