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

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/InlinedVector/size_type.adoc[size&lowbar;type]
capacity() const noexcept;
----

== Description

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

== Return Value

The current capacity&period;


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