◐ Shell
clean mode source ↗

std::map::count - cppreference.com

Da cppreference.com.

Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.

La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

size_type count( const Key& key ) const;

Restituisce il numero di elementi con key chiave.

Original:

Returns the number of elements with key key.

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

Parametri

key -

valore chiave degli elementi da contare

Original:

key value of the elements to count

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

Valore di ritorno

Numero di elementi con key chiave

Original:

Number of elements with key key

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

Complessità

Logarithmic in the size of the container plus linear in the number of the elements found.

Vedi anche

mihai are mere

trova elemento con chiave specifica

Original:

finds element with specific key

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


(metodo pubblico) [modifica]