Add empty() function for baselist.

sql/mysqld.cc:
  Simple cleanup
This commit is contained in:
unknown 2003-05-19 11:09:24 +03:00
commit 6832b0a9c2
2 changed files with 4 additions and 9 deletions

View file

@ -319,7 +319,8 @@ template <class T> class I_List_iterator;
class base_ilist {
public:
struct ilink *first,last;
base_ilist() { first= &last; last.prev= &first; }
inline void empty() { first= &last; last.prev= &first; }
base_ilist() { empty(); }
inline bool is_empty() { return first == &last; }
inline void append(ilink *a)
{