std::unordered_multimap::count
STD:无序[医]数:数
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。