absl::InlinedVector::capacity

Returns the number of elements that could be stored in the inlined vector without requiring a reallocation.

Synopsis

Declared in <absl/container/inlined_vector.h>

size_type
capacity() const noexcept;

Description

NOTE: for most inlined vectors, capacity() should be equal to the template parameter N. For inlined vectors which exceed this capacity, they will no longer be inlined and capacity() will equal the capactity of the allocated memory.

Return Value

The current capacity.