VOOZH about

URL: https://www.geeksforgeeks.org/cpp/unordered_multiset-find-function-in-cstl/

⇱ unordered_multiset find() function in C++STL - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

unordered_multiset find() function in C++STL

Last Updated : 2 Aug, 2018
The unordered_multiset::find() is a built-in function in C++ STL which returns an iterator which points to the position which has the element val. If the element does not contain the element val, then it returns an iterator which points to a position past the last element in the container. Syntax:
unordered_multiset_name.find(val)
Parameters: The function accepts a mandatory parameter val whose position's iterator is to be returned. Return Value: It returns an iterator which points to the position where val is. Below programs illustrate the above function: Program 1:
Output:
500
300 not found
100
Program 2:
Output:
a
z not found
Comment