hash_set::max_size
Not
Bu API artık kullanılmıyor.Alternatif unordered_set Class.
Hash_set en fazla uzunluğunu döndürür.
size_type max_size( ) const;
Dönüş Değeri
En büyük olası uzunluğunu hash_set.
Notlar
Visual C++ .NET 2003, üyeleri de <hash_map> ve <hash_set> başlık dosyaları artık std ad alanında bulunan, ancak bunun yerine stdext ad alanına taşınmış. Bkz: ad stdext daha fazla bilgi için.
Örnek
// hash_set_max_size.cpp
// compile with: /EHsc
#include <hash_set>
#include <iostream>
int main( )
{
using namespace std;
using namespace stdext;
hash_set <int> hs1;
hash_set <int>::size_type i;
i = hs1.max_size( );
cout << "The maximum possible length "
<< "of the hash_set is " << i << "." << endl;
}
Örnek Çıktı
X 86 için aşağıdaki çıktıdır.
The maximum possible length of the hash_set is 1073741823.
Gereksinimler
Başlık: <hash_set>
Ad alanı: stdext