◐ Shell
clean mode source ↗

std::unordered_map::clear - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

void clear();

(desde C++11)

Remove todos os elementos do recipiente. Os iteradores past-the-end não são invalidadas.

Original:

Removes all elements from the container. The past-the-end iterators are not invalidated.

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

Parâmetros

(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.

Valor de retorno

(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.

Exceções

1-3)

Complexidade

linear no tamanho do recipiente.

Original:

linear in the size of the container.

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

apaga elementos

Original:

erases elements

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]