[#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`&period; This method requires that the (template parameter) `VALUE&lowbar;TYPE` be `copy&hyphen;assignable` and `copy&hyphen;insertable` into this deque (see &lcub;Requirements on `VALUE&lowbar;TYPE`&rcub;)&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;deque&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
assign(
    xref:bsl/deque-0c/size_type.adoc[size&lowbar;type] numElements,
    VALUE&lowbar;TYPE const& value);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
