[#bsl-list-054-assign-089] = xref:bsl.adoc[bsl]::xref:bsl/list-054.adoc[list]::assign :relfileprefix: ../../ :mrdocs: `assign` overloads == Synopses Declared in `<bslstl_list.h>` Assign to this list the values in the specified `values` list. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/list-054/assign-081.adoc[assign](std::initializer_list<value_type> values); ---- [.small]#xref:bsl/list-054/assign-081.adoc[_» more..._]# Replace the contents of this list with `numElements` copies of `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/list-054/assign-06.adoc[assign]( xref:bsl/list-054/size_type.adoc[size_type] numElements, xref:bsl/list-054/value_type.adoc[value_type] const& value); ---- [.small]#xref:bsl/list-054/assign-06.adoc[_» more..._]# Assign to this list the values in the range `[first .. last)]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INPUT_ITERATOR> void xref:bsl/list-054/assign-0d.adoc[assign]( INPUT_ITERATOR first, INPUT_ITERATOR last) requires !is_arithmetic<INPUT_ITERATOR>::value && !is_enum<INPUT_ITERATOR>::value; ---- [.small]#xref:bsl/list-054/assign-0d.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *values* | initializer list of values to assign | *numElements* | number of copies of `value` to assign | *value* | value copied into each element | *first* | start of the iterator range | *last* | one past the end of the iterator range |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#