[#bsl-Deque_Base-capacity]
= xref:bsl.adoc[bsl]::xref:bsl/Deque_Base.adoc[Deque&lowbar;Base]::capacity
:relfileprefix: ../../
:mrdocs:

Return how many end insertions remain before iterators are invalidated&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;deque&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/Deque_Base/size_type.adoc[Deque&lowbar;Base&lt;VALUE&lowbar;TYPE&gt;::size&lowbar;type]
capacity() const noexcept;
----

== Description

Return the sum of the current size of this deque plus the minimum number of `push&lowbar;front` or `push&lowbar;back` operations needed to invalidate iterators in this deque&period; Note that this method is not part of the C&plus;&plus; standard&period;

== Return Value

current size plus remaining end&hyphen;push capacity before iterator invalidation


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