1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 04:13:13 +02:00

Use std::tr1::unordered_map for a few of the larger maps

This commit is contained in:
Adam
2012-11-05 22:17:47 -05:00
parent 27ab6a686c
commit 53b2bdfe5e
41 changed files with 182 additions and 65 deletions
+6 -1
View File
@@ -153,9 +153,14 @@ class CommandOSUserList : public Command
}
else
{
/* Historically this has been ordered, so... */
Anope::map<User *> ordered_map;
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
ordered_map[it->first] = it->second;
source.Reply(_("Users list:"));
for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
for (Anope::map<User *>::const_iterator it = ordered_map.begin(); it != ordered_map.end(); ++it)
{
User *u2 = it->second;