BAN: Add less than operator for iterator

This commit is contained in:
Bananymous 2023-12-07 23:55:41 +02:00
parent 6873244169
commit d8ea0eeba3
1 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,11 @@ namespace BAN
return IteratorSimpleGeneral(m_pointer - offset); return IteratorSimpleGeneral(m_pointer - offset);
} }
bool operator<(const IteratorSimpleGeneral& other) const
{
return m_pointer < other.m_pointer;
}
bool operator==(const IteratorSimpleGeneral& other) const bool operator==(const IteratorSimpleGeneral& other) const
{ {
return m_pointer == other.m_pointer; return m_pointer == other.m_pointer;