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.

Syntax

here, return_type is a unsigned integral type.

Parameter

It does not contain any parameter.

Return value

It returns the maximum size of the deque.

Example 1

Let's see a simple example

Output:

Maximum size of deque 'a' is:4611686018427387903

Next TopicC++ Deque



Latest Courses