aboutsummaryrefslogtreecommitdiff
path: root/backend/ListIterator.hpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 23:26:26 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 23:26:26 +0100
commitf4d71aa6e241ae59ed7d305e8aadddf9d90b2b46 (patch)
tree06ac7c54936c3ccc3b086428630bc6d1a3399cab /backend/ListIterator.hpp
parent07796bea15a2d5f43766f062379b63fc9e9e1b5d (diff)
make ListIterator compatible with STL algorithm
Diffstat (limited to 'backend/ListIterator.hpp')
-rw-r--r--backend/ListIterator.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/ListIterator.hpp b/backend/ListIterator.hpp
index 30a556f..45f9acc 100644
--- a/backend/ListIterator.hpp
+++ b/backend/ListIterator.hpp
@@ -45,3 +45,8 @@ bool ListIterator<T>::operator != (const ListIterator<T> & rhs) const {
return this->here != nullptr;
}
+template <typename T>
+bool ListIterator<T>::operator ! () const {
+ return this->here == nullptr;
+}
+