The unordered_multimap::find() is a built-in function in C++ STL which returns an iterator which points to one of the elements which has the key k. If the container does not contain any element with key k, then it returns an iterator which points to the position which is past the last element in the container.
Parameters: The function accepts a mandatory parameter k which specifies the key.
Return Value: It returns an iterator which points to the position where an element with key k is.
Below programs illustrate the above function:
1:2 2:6 element with key 100 not found
element with key r not found a:d b:d
- map find() function in C++ STL
- set find() function in C++ STL
- multiset find() function in C++ STL
- unordered_set find() function in C++ STL
- unordered_multiset find() function in C++STL
- How to call some function before main() function in C++?
- Function Overloading vs Function Overriding in C++
- Difference between Virtual function and Pure virtual function in C++
- What happens when a virtual function is called inside a non-virtual function in C++
- std::find in C++
- Find if there is a subarray with 0 sum
- string find in C++
- multimap find() in C++ STL
- unordered_map find in C++ STL
- Find elements of an Array which are Odd and Even using STL in C++
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.