summaryrefslogtreecommitdiff
path: root/include/channels.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-15 22:58:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-15 22:58:24 +0000
commitab01aaeeee9aed655df2eec2522072233fe3aa57 (patch)
treeba5f3d6f130e6363491afe8d2d1808c8033a8878 /include/channels.h
parenta551203100f50ff4767d516566f38277bd268110 (diff)
Changed to use __single_client_alloc, faster on most systems in a single thread
Specified namespace std in *all* files git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1404 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/channels.h')
-rw-r--r--include/channels.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/channels.h b/include/channels.h
index 7df2d665e..7771c292d 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -84,15 +84,15 @@ class ModeParameter : public classbase
/** Holds a complete ban list
*/
-typedef std::vector<BanItem> BanList;
+typedef std::vector<BanItem, __single_client_alloc> BanList;
/** Holds a complete exempt list
*/
-typedef std::vector<ExemptItem> ExemptList;
+typedef std::vector<ExemptItem, __single_client_alloc> ExemptList;
/** Holds a complete invite list
*/
-typedef std::vector<InviteItem> InviteList;
+typedef std::vector<InviteItem, __single_client_alloc> InviteList;
/** Holds all relevent information for a channel.
* This class represents a channel, and contains its name, modes, time created, topic, topic set time,
@@ -112,7 +112,7 @@ class chanrec : public Extensible
/** User list (casted to char*'s to stop forward declaration stuff)
* (chicken and egg scenario!)
*/
- std::vector<char*> internal_userlist;
+ std::vector<char*, __single_client_alloc> internal_userlist;
/** Channel topic.
* If this is an empty string, no channel topic is set.
@@ -196,7 +196,7 @@ class chanrec : public Extensible
* The resulting pointer to the vector should be considered
* readonly and only modified via AddUser and DelUser.
*/
- std::vector<char*> *GetUsers();
+ std::vector<char*, __single_client_alloc> *GetUsers();
/** Creates a channel record and initialises it with default values
*/