max_size

Syntax:

    #include <deque>
    size_type max_size() const;

The max_size() function returns the maximum number of elements that the deque can hold. The max_size() function should not be confused with the size function, which returns the number of elements currently in the deque.

Related Topics: size