名前空間
変種
操作

std::unordered_set<Key,Hash,KeyEqual,Allocator>::count

提供: cppreference.com
< cpp‎ | container‎ | unordered set
2012年10月26日 (金) 07:00時点におけるTranslationBot (トーク | 投稿記録)による版

(差分) ←前の版 | 最新版 (差分) | 次の版→ (差分)

 
 
 
 
size_type count( const Key& key ) const;
キーkey持つ要素の数を返します。.
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.

目次

パラメータ

key -
カウントする要素のキー値
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.

値を返します

キーkey持つ要素の数
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.

複雑

Amortized constant on average, worst case linear in the size of the container.

も参照してください

指定されたキーを持つ要素を探します
(パブリックメンバ関数) [edit]
指定されたキーに一致する要素の範囲を返します
(パブリックメンバ関数) [edit]