I only guess. But howcount() , it makes some difference when you are in a template and do not want to determine if you are working on std::setor on some other associative container.
Basically, this is for consistency. The function performs as advertised, just that yes, it has dubious use compared to something like find()if you take it in isolation. This could potentially save you one manual iterator increase if you really want to get a half-open range out of the box .: P
source
share