[#bsl-slist-assign-07] = xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::assign :relfileprefix: ../../ :mrdocs: Replace the contents of this list with the range `[__first, __last)]`. == Synopsis Declared in `<bslstp_slist.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class _InputIterator> void assign( _InputIterator __first, _InputIterator __last); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#