hash_multimap::max_size
[!NOTA]
Esta API está obsoleta.La alternativa es unordered_multimap Class.
Devuelve la longitud máxima de hash_multimap.
size_type max_size( ) const;
Valor devuelto
La longitud máxima posible de hash_multimap.
Comentarios
En Visual C++ .NET 2003, los miembros de los archivos de encabezado <hash_map> y <hash_set> ya no están en el espacio de nombres std, pero se han movido bastante al espacio de nombres stdext.Vea El espacio de nombres stdext para obtener más información.
Ejemplo
// hash_multimap_max_size.cpp
// compile with: /EHsc
#include <hash_map>
#include <iostream>
int main( )
{
using namespace std;
using namespace stdext;
hash_multimap <int, int> hm1;
hash_multimap <int, int> :: size_type i;
i = hm1.max_size( );
cout << "The maximum possible length "
<< "of the hash_multimap is " << i << "." << endl;
}
Resultados del ejemplo
El resultado siguiente es para x86.
The maximum possible length of the hash_multimap is 536870911.
Requisitos
Encabezado: <hash_map>
Stdext deEspacio de nombres: