Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::unordered_map<Key,T,Hash,KeyEqual,Allocator>::key_eq

Returns the function that compares keys for equality.

NotebookLM
key_equal key_eq() const;
(since C++11)

Returns the function that compares keys for equality.

Parameters

(none)

Return value

The key comparison function.

Complexity

Constant.

See also

returns function used to hash the keys
(public member function)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.