W3cubDocs

/C++

std::unordered_set<Key,Hash,KeyEqual,Allocator>::hash_function

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

returns the function used to compare keys for equality
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/container/unordered_set/hash_function