diff options
author | Adam <Adam@anope.org> | 2012-11-05 22:17:47 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-11-06 11:02:12 -0500 |
commit | 53b2bdfe5e157a9e5ca5d08873edebcd04511ae1 (patch) | |
tree | f94c8603ffe475405ea668c629eddd7c8ba0891e /include/sockets.h | |
parent | 27ab6a686cb271ea8eae7a243906af5bebeb83d7 (diff) |
Use std::tr1::unordered_map for a few of the larger maps
Diffstat (limited to 'include/sockets.h')
-rw-r--r-- | include/sockets.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sockets.h b/include/sockets.h index 7074522e0..6fa6c4075 100644 --- a/include/sockets.h +++ b/include/sockets.h @@ -90,7 +90,15 @@ class CoreExport cidr cidr(const Anope::string &ip, unsigned char len); Anope::string mask() const; bool match(sockaddrs &other); + bool operator<(const cidr &other) const; + bool operator==(const cidr &other) const; + bool operator!=(const cidr &other) const; + + struct hash + { + size_t operator()(const cidr &s) const; + }; }; class SocketException : public CoreException |