Javatpoint Logo
Javatpoint Logo

C++ Deque max_size()

C++ Deque max_size() function is a built in function that returns the maximum number of elements that deque container can hold.


here, return_type is a unsigned integral type.


It does not contain any parameter.

Return value

It returns the maximum size of the deque.

Example 1

Let's see a simple example


Maximum size of deque 'a' is:4611686018427387903

Next TopicC++ Deque

Help Others, Please Share

facebook twitter pinterest