hash_multimap::max_size
[!POZNÁMKA]
Toto rozhraní API je zastaralé.Alternativou je unordered_multimap – třída.
Vrátí maximální délku hash_multimap.
size_type max_size( ) const;
Vrácená hodnota
Maximální možná délka hash_multimap.
Poznámky
V aplikaci Visual C++ .NET 2003, členové hlavičkových souborů tříd <hash_map> a <hash_set> již nejsou v oboru názvů std, ale byly přesunuty do oboru názvů stdext.Další informace naleznete v tématu Obor názvů stdext.
Příklad
// 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;
}
Výstup ukázky
Následující výstup je pro x86.
The maximum possible length of the hash_multimap is 536870911.
Požadavky
Hlavička: <hash_map>
Obor názvů: stdext