mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:30:04 +00:00
Hash utility
This commit is contained in:
parent
8d2fcf3802
commit
32e8ca72a0
3 changed files with 43 additions and 0 deletions
21
wxdata/include/scwx/util/hash.hpp
Normal file
21
wxdata/include/scwx/util/hash.hpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace util
|
||||
{
|
||||
|
||||
template<class Key>
|
||||
struct hash;
|
||||
|
||||
template<>
|
||||
struct hash<std::pair<std::string, std::string>>
|
||||
{
|
||||
size_t operator()(const std::pair<std::string, std::string>& x) const;
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue