Commit 507d8fdc authored by Max Kellermann's avatar Max Kellermann

ClientList: add typedef List

parent 31e29e62
...@@ -25,10 +25,12 @@ ...@@ -25,10 +25,12 @@
class Client; class Client;
class ClientList { class ClientList {
typedef std::list<Client *> List;
const unsigned max_size; const unsigned max_size;
unsigned size; unsigned size;
std::list<Client *> list; List list;
public: public:
ClientList(unsigned _max_size) ClientList(unsigned _max_size)
...@@ -37,11 +39,11 @@ public: ...@@ -37,11 +39,11 @@ public:
CloseAll(); CloseAll();
} }
std::list<Client *>::iterator begin() { List::iterator begin() {
return list.begin(); return list.begin();
} }
std::list<Client *>::iterator end() { List::iterator end() {
return list.end(); return list.end();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment