VOOZH about

URL: https://www.geeksforgeeks.org/cpp/unordered_multiset-hash_function-function-in-c-stl/

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


  • Courses
  • Tutorials
  • Interview Prep

unordered_multiset hash_function() function in C++ STL

Last Updated : 2 Aug, 2018
The unordered_multiset::hash_function() is a built-in function in C++ STL which is used to get the hash function. This hash function is a unary function which takes a single argument only and returns a unique value of type size_t based on it. Syntax:
unordered_multiset_name.hash_function()
Parameter: The function does not accepts any parameter. Return Value: The function returns the hash function. Below programs illustrate the unordered_multiset::hash_function() function: Program 1:
Output:
15276750567035005396
geeks2 for geeks1 geeks1
Program 2:
Output:
5146686323530302118
Comment