hash_multimap::max_size
[!UWAGA]
Ten interfejs API jest nieaktualny.Alternatywą jest unordered_multimap — Klasa.
Zwraca maksymalną wartość wynoszącą hash_multimap.
size_type max_size( ) const;
Wartość zwracana
Maksymalna długość to możliwe hash_multimap.
Uwagi
W Visual C++ .NET 2003, elementy członkowskie plików nagłówka <hash_map> i <hash_set> nie są już w przestrzeni nazw std, ale raczej zostały przeniesione do przestrzeni nazw stdext.Zobacz Przestrzeń nazw stdext, aby uzyskać więcej informacji.
Przykład
// 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;
}
Przykładowe dane wyjściowe
Poniższe dane wyjściowe odnoszą się do x86.
The maximum possible length of the hash_multimap is 536870911.
Wymagania
Nagłówek: <hash_map>
Przestrzeń nazw: stdext