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 0bbc0f87944..22e9ed37386 100644 --- a/sql/sql_list.h +++ b/sql/sql_list.h @@ -357,6 +357,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; }; @@ -389,6 +393,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 |