std::unordered_multiset::count
size_type count( const Key& key ) const; | (1) | (since C++11) |
|---|
返回与指定参数相等的键的元素数。key...
参数
key | - | key value of the elements to count |
|---|
返回值
带键的元素数key...
复杂性
元素数与键的线性关系key平均而言,最坏的情况与容器的大小成线性关系。
另见
find | finds element with specific key (public member function) |
|---|---|
equal_range | returns range of elements matching a specific key (public member function) |
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

