# std::unordered_multiset<Key,Hash,KeyEqual,Allocator>::hash_function

> C++ Atlas: `cppatlas.com/w/cpp/container/unordered_multiset/hash_function` | Source: https://en.cppreference.com/w/cpp/container/unordered_multiset/hash_function | Domain: Containers | Standards: C++11

Returns the function that hashes the keys.

## Official Specification Summary (cppreference)

```cpp
hasher hash_function() const; // (since C++11)
```

Returns the function that hashes the keys.

### Parameters

(none)

### Return value

The hash function.

### Complexity

Constant.

### See also

- [`key_eq`](https://en.cppreference.com/w/cpp/container/unordered_multiset/key_eq): returns the function used to compare keys for equality (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/container/unordered_multiset/hash_function (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.