1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
7 * <brain@chatspike.net>
8 * <Craig@chatspike.net>
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
20 #include "inspircd_config.h"
23 #include <ext/hash_map>
29 #define nspace __gnu_cxx
39 template<> struct hash<in_addr>
41 template<> struct nspace::hash<in_addr>
44 size_t operator()(const struct in_addr &a) const;
47 template<> struct hash<string>
49 template<> struct nspace::hash<string>
52 size_t operator()(const string &s) const;
60 bool operator()(const string& s1, const string& s2) const;
63 struct InAddr_HashComp
65 bool operator()(const in_addr &s1, const in_addr &s2) const;