📜  标准地图计数与查找 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:05.738000             🧑  作者: Mango

代码示例1
In general, both count and find will use the container-specific lookup methods (tree traversal or hash table lookup), which are always fairly efficient. It's just that count has to continue iterating until the end of the equal-range, whereas find does not. Moreover, your code should document intent, so if you want to find something, use find.