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.

public:
 float max_load_factor();
public float max_load_factor ();
abstract member max_load_factor : unit -> single
Public Function max_load_factor () As Single

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

max_load_factor(Single)

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

public:
 void max_load_factor(float _Newmax);
public void max_load_factor (float _Newmax);
abstract member max_load_factor : single -> unit
Public Sub max_load_factor (_Newmax As Single)

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