[#bsl-slist-assign-0b] = xref:bsl.adoc[bsl]::xref:bsl/slist.adoc[slist]::assign :relfileprefix: ../../ :mrdocs: Replace the contents of this list with `__n` copies of `__val`. == Synopsis Declared in `<bslstp_slist.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void assign( xref:bsl/slist/size_type.adoc[size_type] __n, _Tp const& __val); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#