[#bsl-vector-047-resize-0f]
= xref:bsl.adoc[bsl]::xref:bsl/vector-047.adoc[vector&lt;unsigned long long&gt;]::resize
:relfileprefix: ../../
:mrdocs:

`resize` overloads

== Synopses

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

Change the size of this vector to the specified `newSize`&period; If `newSize &lt; size()`, the elements in the range `&lsqb;newSize &period;&period; size())&rsqb;` are erased, and this function does not throw&period; If `newSize &gt; size()`, the (newly created) elements in the range `&lsqb;size() &period;&period; newSize)&rsqb;` are default&hyphen;constructed `value&lowbar;type` objects, and if an exception is thrown (other than by the move constructor of a non&hyphen;copy&hyphen;insertable `value&lowbar;type`), `&ast;this` is unaffected&period; Throw `std&colon;&colon;length&lowbar;error` if `newSize &gt; max&lowbar;size()`&period; This method requires that the (template parameter) type `VALUE&lowbar;TYPE` be `default&hyphen;insertable` and `move&hyphen;insertable` into this vector (see &lcub;Requirements on `VALUE&lowbar;TYPE`&rcub;)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/vector-047/resize-07.adoc[resize](xref:bsl/vector-047/size_type.adoc[size&lowbar;type] newSize);
----

[.small]#xref:bsl/vector-047/resize-07.adoc[_» more&period;&period;&period;_]#

Change the size of this vector to the specified `newSize`, inserting `newSize &hyphen; size()` copies of the specified `value` at the end of this vector if `newSize &gt; size()`&period; If `newSize &lt; size()`, the elements in the range `&lsqb;newSize &period;&period; size())&rsqb;` 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 `std&colon;&colon;length&lowbar;error` if `newSize &gt; max&lowbar;size()`&period; This method requires that the (template parameter) type `VALUE&lowbar;TYPE` be `copy&hyphen;insertable` into this vector (see &lcub;Requirements on `VALUE&lowbar;TYPE`&rcub;)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:bsl/vector-047/resize-01.adoc[resize](
    xref:bsl/vector-047/size_type.adoc[size&lowbar;type] newSize,
    unsigned long long const& value);
----

[.small]#xref:bsl/vector-047/resize-01.adoc[_» more&period;&period;&period;_]#


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