[#bsl-deque-0c-resize-01]
= xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::resize
:relfileprefix: ../../
:mrdocs:

Change the size of this deque to the specified `newSize`, inserting `newSize &hyphen; size()` copies of the specified `value` at the back if `newSize &gt; size()`&period; If `newSize &lt; size()`, the elements at the back are erased, `value` is ignored, and this method does not throw&period; If `newSize &gt; size()` and an exception is thrown, `&ast;this` is unaffected&period; Throw `bsl&colon;&colon;length&lowbar;error` if `newSize &gt; max&lowbar;size()`&period;

== Synopsis

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

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


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