[#bsl-deque-0c-max_size]
= xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::max&lowbar;size
:relfileprefix: ../../
:mrdocs:

Return the maximum possible size of this deque&period; Note that this is a theoretical maximum (such as the maximum value that can be held by `size&lowbar;type`)&period; Also note that any request to create or enlarge a deque to a size greater than `max&lowbar;size()` is guaranteed to raise a `bsl&colon;&colon;length&lowbar;error` exception&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/deque-0c/size_type.adoc[deque&lt;VALUE&lowbar;TYPE, ALLOCATOR&gt;::size&lowbar;type]
max&lowbar;size() const noexcept;
----


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