[#absl-InlinedVector-resize-04]
= xref:absl.adoc[absl]::xref:absl/InlinedVector.adoc[InlinedVector]::resize
:relfileprefix: ../../
:mrdocs:

Overload of `InlinedVector&colon;&colon;resize(&period;&period;&period;)` that resizes the inlined vector to contain `n` elements&period;

== Synopsis

Declared in `&lt;absl&sol;container&sol;inlined&lowbar;vector&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
resize(
    xref:absl/InlinedVector/size_type.adoc[size&lowbar;type] n,
    xref:absl/InlinedVector/const_reference.adoc[const&lowbar;reference] v);
----

== Description

NOTE&colon; if `n` is smaller than `size()`, extra elements are destroyed&period; If `n` is larger than `size()`, new elements are copied&hyphen;constructed from `v`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *n*
| The new number of elements&period;
| *v*
| The value to copy into any new elements&period;
|===


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