absl::InlinedVector::resize

Overload of InlinedVector::resize(...) that resizes the inlined vector to contain n elements.

Synopsis

Declared in <absl/container/inlined_vector.h>

void
resize(
    size_type n,
    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

NameDescription
nThe new number of elements.
vThe value to copy into any new elements.