replaced map by unordered_map

This commit is contained in:
orignal 2020-01-28 10:03:51 -05:00
parent fd1ee48dbe
commit 77440c235d
2 changed files with 18 additions and 6 deletions

View file

@ -93,4 +93,16 @@ private:
} // data
} // i2p
namespace std
{
// hash for std::unordered_map
template<size_t sz> struct hash<i2p::data::Tag<sz> >
{
size_t operator()(const i2p::data::Tag<sz>& s) const
{
return s.GetLL ()[0];
}
};
}
#endif /* TAG_H__ */