deque::max_size
Retorna o comprimento máximo do deque.
size_type max_size( ) const;
Valor de retorno
O comprimento máximo possível de deque.
Exemplo
// 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;
}
Saída de Exemplo
The maximum possible length of the deque is 1073741823.
Requisitos
Cabeçalho: <deque>
Namespace: std