##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::unordered_set::hash_function

From cppreference.com
< cpp‎ | container‎ | unordered set

[edit template]

hasher hash_function() const; |  | (since C++11)

Returns the function that hashes the keys.

### [edit] Parameters

(none)

### [edit] Return value

The hash function.

### [edit] Complexity

Constant.

### [edit] See also

key_eq | returns the function used to compare keys for equality (public member function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/container/unordered_set/hash_function&oldid=50786"