map::max_size
Retorna o comprimento máximo do mapa.
size_type max_size( ) const;
Valor de retorno
O comprimento máximo possível do mapa.
Exemplo
// map_max_size.cpp
// compile with: /EHsc
#include <map>
#include <iostream>
int main( )
{
using namespace std;
map <int, int> m1;
map <int, int> :: size_type i;
i = m1.max_size( );
cout << "The maximum possible length "
<< "of the map is " << i << "."
<< endl << "(Magnitude is machine specific.)";
}
Saída de Exemplo
A saída a seguir é para x86.
The maximum possible length of the map is 536870911.
(Magnitude is machine specific.)
Requisitos
mapa <deCabeçalho: >
Namespace: std