diff options
Diffstat (limited to 'sql/sql_list.h')
-rw-r--r-- | sql/sql_list.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_list.h b/sql/sql_list.h index 102fbe8eb93..370642df2d0 100644 --- a/sql/sql_list.h +++ b/sql/sql_list.h @@ -322,6 +322,10 @@ class base_ilist first_link->unlink(); // Unlink from list return first_link; } + inline struct ilink *head() + { + return (first != &last) ? first : 0; + } friend class base_list_iterator; }; @@ -353,6 +357,7 @@ public: inline void append(T* a) { base_ilist::append(a); } inline void push_back(T* a) { base_ilist::push_back(a); } inline T* get() { return (T*) base_ilist::get(); } + inline T* head() { return (T*) base_ilist::head(); } #ifndef _lint friend class I_List_iterator<T>; #endif |