diff options
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 |