From d8ea0eeba3ef437a47e1be127bef60b156e7fc79 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 7 Dec 2023 23:55:41 +0200 Subject: [PATCH] BAN: Add less than operator for iterator --- BAN/include/BAN/Iterators.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BAN/include/BAN/Iterators.h b/BAN/include/BAN/Iterators.h index 8af78e6b4a..f39a75c527 100644 --- a/BAN/include/BAN/Iterators.h +++ b/BAN/include/BAN/Iterators.h @@ -135,6 +135,11 @@ namespace BAN return IteratorSimpleGeneral(m_pointer - offset); } + bool operator<(const IteratorSimpleGeneral& other) const + { + return m_pointer < other.m_pointer; + } + bool operator==(const IteratorSimpleGeneral& other) const { return m_pointer == other.m_pointer;