[#bsl-slist-2constructor-0d] = xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::slist :relfileprefix: ../../ :mrdocs: Create a list from the specified iterator range. == Synopsis Declared in `<bslstp_slist.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> slist( _InputIterator __first, _InputIterator __last, xref:bsl/slist/allocator_type.adoc[allocator_type] const& __a = allocator_type()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#