1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Add empty() function for baselist.

This commit is contained in:
monty@narttu.mysql.fi
2003-05-19 11:09:24 +03:00
parent e2fc4f0b71
commit 755c89e29f
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)
{