Skip to main content

std::unordered_map key_eq() method

// Const version only
key_equal key_eq() const;

Returns the function that compares keys for equality.

Parameters

(none)

Return value

The key comparison function.

Complexity

Constant - O(1).

Exceptions

(none)

Examples

important

This section requires improvement. You can help by editing this doc page.

This article originates from this CppReference page. It was likely altered for improvements or editors' preference. Click "Edit this page" to see all changes made to this document.
Hover to see the original license.

std::unordered_map key_eq() method

// Const version only
key_equal key_eq() const;

Returns the function that compares keys for equality.

Parameters

(none)

Return value

The key comparison function.

Complexity

Constant - O(1).

Exceptions

(none)

Examples

important

This section requires improvement. You can help by editing this doc page.

This article originates from this CppReference page. It was likely altered for improvements or editors' preference. Click "Edit this page" to see all changes made to this document.
Hover to see the original license.