Export (0) Print
Expand All

deque::max_size

Returns the maximum length of the deque.

size_type max_size( ) const;

The maximum possible length of the deque.

// deque_max_size.cpp
// compile with: /EHsc
#include <deque>
#include <iostream>

int main( ) 
{
   using namespace std;
   deque <int> c1;
   deque <int>::size_type i;

   i = c1.max_size( );
   cout << "The maximum possible length of the deque is " << i << "." << endl;
}

The maximum possible length of the deque is 1073741823.

Header: <deque>

Namespace: std

Show:
© 2014 Microsoft