首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::unordered_multimap::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)

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com