20 #ifndef HASH_FUNCTIONS_H_
21 #define HASH_FUNCTIONS_H_
30 template<
typename T>
struct hash<unordered_set<T>> {
35 inline size_t operator()(
const unordered_set<T> & s)
const
39 for(
typename unordered_set<T>::const_iterator it = s.cbegin(); it != s.cend(); ++it) {
42 return (seed << s.size()) + (seed >> s.size());
size_t operator()(const unordered_set< T > &s) const
This operator serves as an implementation of its encapsulating struct.
Definition: hash_functions.h:35