C++ Unordered_set Library - key_eq


Advertisements

Description

It returns the key equivalence comparison predicate used by the unordered_set container.

Declaration

Following is the declaration for std::unordered_set::key_eq.

C++11

key_equal key_eq() const;

Parameters

none

Return value

It returns the key equality comparison object.

Exceptions

Exception is thrown if any element comparison object throws exception.

Please note that invalid arguments cause undefined behavior.

Time complexity

constant time.

unordered_set.htm
Advertisements