[#absl-InlinedVector-resize-04] = xref:absl.adoc[absl]::xref:absl/InlinedVector.adoc[InlinedVector]::resize :relfileprefix: ../../ :mrdocs: Overload of `InlinedVector::resize(...)` that resizes the inlined vector to contain `n` elements. == Synopsis Declared in `<absl/container/inlined_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void resize( xref:absl/InlinedVector/size_type.adoc[size_type] n, xref:absl/InlinedVector/const_reference.adoc[const_reference] v); ---- == Description NOTE: if `n` is smaller than `size()`, extra elements are destroyed. If `n` is larger than `size()`, new elements are copied‐constructed from `v`. == Parameters [cols="1,4"] |=== | Name| Description | *n* | The new number of elements. | *v* | The value to copy into any new elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#