From 636f32fcd0ac8bdd5bb70e04b6205d9980ef344e Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 15 May 2005 18:35:39 +0000 Subject: Moved StrHashComp and InAddr_HashComp into the irc:: namespace git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1398 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/hashcomp.h | 43 +++++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 20 deletions(-) (limited to 'include') diff --git a/include/hashcomp.h b/include/hashcomp.h index c9debd698..b4652642b 100644 --- a/include/hashcomp.h +++ b/include/hashcomp.h @@ -53,32 +53,35 @@ namespace nspace }; } -/** This class returns true if two strings match. - * Case sensitivity is ignored, and the RFC 'character set' - * is adhered to +/** The irc namespace contains a number of helper classes. */ -struct StrHashComp +namespace irc { - /** The operator () does the actual comparison in hash_map + + /** This class returns true if two strings match. + * Case sensitivity is ignored, and the RFC 'character set' + * is adhered to */ - bool operator()(const string& s1, const string& s2) const; -}; + struct StrHashComp + { + /** The operator () does the actual comparison in hash_map + */ + bool operator()(const std::string& s1, const std::string& s2) const; + }; -/** This class returns true if two in_addr structs match. - * Checking is done by copying both into a size_t then doing a - * numeric comparison of the two. - */ -struct InAddr_HashComp -{ - /** The operator () does the actual comparison in hash_map + + /** This class returns true if two in_addr structs match. + * Checking is done by copying both into a size_t then doing a + * numeric comparison of the two. */ - bool operator()(const in_addr &s1, const in_addr &s2) const; -}; + struct InAddr_HashComp + { + /** The operator () does the actual comparison in hash_map + */ + bool operator()(const in_addr &s1, const in_addr &s2) const; + }; + -/** The irc namespace contains a number of helper classes. - */ -namespace irc -{ /** The irc_char_traits class is used for RFC-style comparison of strings. * This class is used to implement irc::string, a case-insensitive, RFC- * comparing string class. -- cgit v1.2.3