forked from Bananymous/banan-os
BAN: Add less than operator for iterator
This commit is contained in:
parent
6873244169
commit
d8ea0eeba3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue