[#bsl-deque-0c-assign-0e] = xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::assign :relfileprefix: ../../ :mrdocs: `assign` overloads == Synopses Declared in `<bslstl_deque.h>` Assign to this object the value resulting from first clearing this deque and then appending each `value_type` object in the specified `values` initializer list. This method requires that the (template parameter) `VALUE_TYPE` be `copy‐assignable` and `copy‐insertable` into this deque (see {Requirements on `VALUE_TYPE`}). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/deque-0c/assign-0d.adoc[assign](std::initializer_list<value_type> values); ---- [.small]#xref:bsl/deque-0c/assign-0d.adoc[_» more..._]# Assign to this object the value resulting from first clearing this deque and then appending the specified `numElements` having the specified `value`. This method requires that the (template parameter) `VALUE_TYPE` be `copy‐assignable` and `copy‐insertable` into this deque (see {Requirements on `VALUE_TYPE`}). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:bsl/deque-0c/assign-04.adoc[assign]( xref:bsl/deque-0c/size_type.adoc[size_type] numElements, VALUE_TYPE const& value); ---- [.small]#xref:bsl/deque-0c/assign-04.adoc[_» more..._]# Assign to this deque the values in the range starting at the specified `first` and ending immediately before the specified `last` iterators of the (template parameter) type `INPUT_ITERATOR`. The (template parameter) type `INPUT_ITERATOR` shall meet the requirements of an input iterator defined in the C++11 standard [input.iterators]providing access to values of a type convertible to `value_type`, and `value_type` must be `copy‐assignable` and `emplace‐constructible` from `*i` into this deque, where `i` is a dereferenceable iterator in the range `[first .. last)]` (see {Requirements on `VALUE_TYPE`}). The behavior is undefined unless `first` and `last` refer to a sequence of valid values where `first` is at a position at or before `last`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INPUT_ITERATOR> void xref:bsl/deque-0c/assign-06.adoc[assign]( INPUT_ITERATOR first, INPUT_ITERATOR last); ---- [.small]#xref:bsl/deque-0c/assign-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#