IHash<TKey,TValue>.max_load_factor Method

Definition

Gets or sets the maximum number of elements per bucket in the hash table.

Overloads

max_load_factor()

Gets the maximum number of elements per bucket in the hash table.

max_load_factor(Single)

Sets the maximum number of elements per bucket in the hash table.

Remarks

For more information, see hash_map::max_load_factor (STL/CLR), hash_multimap::max_load_factor (STL/CLR), hash_set::max_load_factor (STL/CLR), and hash_multiset::max_load_factor (STL/CLR).

max_load_factor()

Gets the maximum number of elements per bucket in the hash table.

C#
public float max_load_factor();

Returns

The maximum number of elements per bucket in the hash table.

Remarks

For more information, see hash_map::max_load_factor (STL/CLR), hash_multimap::max_load_factor (STL/CLR), hash_set::max_load_factor (STL/CLR), and hash_multiset::max_load_factor (STL/CLR).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

max_load_factor(Single)

Sets the maximum number of elements per bucket in the hash table.

C#
public void max_load_factor(float _Newmax);

Parameters

_Newmax
Single

The maximum number of elements per bucket in the hash table.

Remarks

For more information, see hash_map::max_load_factor (STL/CLR), hash_multimap::max_load_factor (STL/CLR), hash_set::max_load_factor (STL/CLR), and hash_multiset::max_load_factor (STL/CLR).

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1