VOOZH about

URL: https://www.geeksforgeeks.org/cpp/multimapcount-in-c-stl/

⇱ multimap::count() in C++ STL - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

multimap::count() in C++ STL

Last Updated : 18 Nov, 2020
The multimap::count is a built-in function in C++ STL which returns the number of times a key is present in the multimap container. Syntax:
multimap_name.count(key)
Parameters: The function accepts one mandatory parameter key which specifies the key whose count in multimap container is to be returned. Return Value: The function returns the number of times a key is present in the multimap container.
Output:
1 exists 2 times in the multimap
2 exists 3 times in the multimap
Comment
Article Tags: