[#bsl-deque-0c-assign-04] = xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::assign :relfileprefix: ../../ :mrdocs: 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`}). == Synopsis Declared in `<bslstl_deque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void assign( xref:bsl/deque-0c/size_type.adoc[size_type] numElements, VALUE_TYPE const& value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#