diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-13 20:07:08 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-13 20:07:08 +0000 |
commit | 6bd9e67851ee7294e3529c3d7a4b05aa8601a2e3 (patch) | |
tree | b37c8896d49c98854c7f71533782d1474252c5f7 /include/hashcomp.h | |
parent | f240285155d115ee3a0fd437944f2bec05a0c14c (diff) |
Change m_watch to use hash_map rather than map, because of the large number of entries we deal with it will usually be faster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5979 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r-- | include/hashcomp.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h index ce1c403fe..0dea42e42 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -544,4 +544,14 @@ bool operator== (irc::string& leftval, std::string& rightval); std::string assign(const irc::string &other); irc::string assign(const std::string &other); +namespace nspace +{ + /** Hashing function to hash irc::string + */ + template<> struct hash<irc::string> + { + size_t operator()(const irc::string &s) const; + }; +} + #endif |