[#bsl-deque-0c-max_size] = xref:bsl.adoc[bsl]::xref:bsl/deque-0c.adoc[deque]::max_size :relfileprefix: ../../ :mrdocs: Return the maximum possible size of this deque. Note that this is a theoretical maximum (such as the maximum value that can be held by `size_type`). Also note that any request to create or enlarge a deque to a size greater than `max_size()` is guaranteed to raise a `bsl::length_error` exception. == Synopsis Declared in `<bslstl_deque.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/deque-0c/size_type.adoc[deque<VALUE_TYPE, ALLOCATOR>::size_type] max_size() const noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#