[#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. == Synopsis Declared in `<absl/container/inlined_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:absl/InlinedVector/size_type.adoc[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. [.small]#Created with https://www.mrdocs.com[MrDocs]#