1
0
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:
Eugene Kosov
2019-11-12 18:15:26 +07:00
parent 83a0eaec08
commit ae72205e31
2 changed files with 94 additions and 147 deletions

View File

@ -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)
{