The member function returns the number of
elements in the controlled sequence that have
equivalent ordering with key. You use it to
determine the number of elements currently in
the controlled sequence that match a
specified key.
STL中 map的count 方法(Finds the number of elements matching a specified key)
size_type count(key_type key);RemarksThe member function returns the number of elements in the controlled sequence that have equivalent ordering with key. You use it to determine the number of elements currently in the controlled sequence that match