◐ Shell
clean mode source ↗

std::unordered_map::max_load_factor - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

float max_load_factor() const;

(1) (desde C++11)

void max_load_factor( float ml );

(2) (desde C++11)

Gerencia o fator de carga máxima (número de elementos por balde). O recipiente aumenta automaticamente o número de depósitos, se o fator de carga exceder o limite.

Original:

Manages the maximum load factor (number of elements per bucket). The container automatically increases the number of buckets if the load factor exceeds this threshold.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

1)

Retorna fator de carga máxima atual.

Original:

Returns current maximum load factor.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2)

Define o fator de carga máxima para ml.

Original:

Sets the maximum load factor to ml.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parâmetros

ml -

definição de novo fator máximo de carga

Original:

new maximum load factor setting

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

1)

fator de carga máxima atual.

Original:

current maximum load factor.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2)

nenhum.

Original:

none.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Complexidade

Constante

Original:

Constant

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Veja também

retorna número médio de elementos por balde

Original:

returns average number of elements per bucket

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(função pública membro) [edit]