You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
512 B

#ifndef STORM_STORAGE_PAIRHASH_H_
#define STORM_STORAGE_PAIRHASH_H_
#include <boost/functional/hash.hpp>
namespace std {
template <>
struct hash<std::pair<uint_fast64_t, uint_fast64_t>>
{
std::size_t operator()(std::pair<uint_fast64_t, uint_fast64_t> const& key) const {
std::size_t seed = 0;
boost::hash_combine(seed, key.first);
boost::hash_combine(seed, key.second);
return seed;
}
};
}
#endif /* STORM_STORAGE_PAIRHASH_H_ */