Return the theoretical maximum size of this deque.

Synopsis

Declared in <bslstl_deque.h>

deque<VALUE_TYPE, ALLOCATOR>::size_type
max_size() const noexcept;

Description

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.

Return Value

maximum number of elements this deque can hold

Created with MrDocs