From f4d71aa6e241ae59ed7d305e8aadddf9d90b2b46 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 1 Nov 2024 23:26:26 +0100 Subject: make ListIterator compatible with STL algorithm --- backend/ListIterator.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backend/ListIterator.hpp') 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::operator != (const ListIterator & rhs) const { return this->here != nullptr; } +template +bool ListIterator::operator ! () const { + return this->here == nullptr; +} + -- cgit v1.2.3