unordered_multimap key_eq() function in C++ STL
unordered_multimap::key_eq() is a built-in function in C++ STL which returns a boolean value according to the comparison. It depends on the key equivalence comparison predicate used by the unordered_multimap container. The key equivalence comparison is a predicate which takes two arguments and returns a boolean value indicating whether they are to be considered equivalent. It returns true if they are equivalent else it returns false. It is adopted by the container on construction and is similar to the (==) operator used in the comparison.
Parameter: The function accepts two mandatory parameters args1 and args2, between whom the comparison is to be done. The data_type is same as that of the unordered_multimap.
Return Value: The function returns a boolean value.
Below programs illustrate the unordered_multimap::key_eq() function:
GEEKS and geeks are treated dissimilarly in the container
100 and 200 are treated dissimilarly in the container 100 and 100 are treated similarly in the container