mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
cleanup: replace List_iterator(_fast) in handler0alter.cc
Basically, use more List<T>::iterator. This patch required adding two more overloads to new iterator for convenience.
This commit is contained in:
@ -569,6 +569,12 @@ public:
|
||||
}
|
||||
|
||||
T &operator*() { return *static_cast<T *>(node->info); }
|
||||
T *operator->() { return static_cast<T *>(node->info); }
|
||||
|
||||
bool operator==(const typename List<T>::iterator &rhs)
|
||||
{
|
||||
return node == rhs.node;
|
||||
}
|
||||
|
||||
bool operator!=(const typename List<T>::iterator &rhs)
|
||||
{
|
||||
|
Reference in New Issue
Block a user