supercell-wx/wxdata/source/scwx/util/hash.cpp
2022-10-02 23:12:41 -05:00

20 lines
385 B
C++

#include <scwx/util/hash.hpp>
#include <boost/container_hash/hash.hpp>
namespace scwx
{
namespace util
{
size_t hash<std::pair<std::string, std::string>>::operator()(
const std::pair<std::string, std::string>& x) const
{
size_t seed = 0;
boost::hash_combine(seed, x.first);
boost::hash_combine(seed, x.second);
return seed;
}
} // namespace util
} // namespace scwx