BAN: Add less than operator for iterator
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user