multiset<Type>::count() 函数的时间复杂度是与找到的元素个数相关的。具体地,设存在 KKK 个目标元素,multiset 大小为 NNN,则时间复杂度为 O(K+logN)\mathrm{O}(K + \log N)O(K+logN)。
multiset<Type>::count()
multiset