Vector is better than list, unless:
- you require random access (these don't)
- you require that the memory they are stored in are contiguous (these don't)
This will save a couple of bytes here and there perhaps (along with
much less problems with memory fragmentation and allocation).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10923
e03df62e-2008-0410-955e-
edbf42e46eb7
/** Holds a complete ban list
*/
-typedef std::vector<BanItem> BanList;
+typedef std::list<BanItem> BanList;
/** A list of users on a channel
*/
#include <sstream>
#include <string>
#include <vector>
+#include <list>
#include <deque>
#include <map>
#include <bitset>
/** Items stored in the channel's list
*/
-typedef std::vector<ListItem> modelist;
+typedef std::list<ListItem> modelist;
/** Max items per channel by name
*/
-typedef std::vector<ListLimit> limitlist;
+typedef std::list<ListLimit> limitlist;
/** A request used to check if a user is on a channel's list or not
*/