diff --git a/include/libcamera/base/utils.h b/include/libcamera/base/utils.h
index 957150cb..782d5c97 100644
--- a/include/libcamera/base/utils.h
+++ b/include/libcamera/base/utils.h
@@ -205,6 +205,10 @@ public:
 		iterator &operator++();
 		std::string operator*() const;
 		bool operator!=(const iterator &other) const;
+		bool operator==(const iterator &other) const
+		{
+			return !(*this != other);
+		}
 
 	private:
 		const StringSplitter *ss_;
