add BufferView::Iterator operator<() and friend

This commit is contained in:
Andrew Meadows 2016-08-19 10:26:47 -07:00
parent c3f165d9da
commit 5b5ed220bc

View file

@ -224,6 +224,8 @@ public:
bool operator==(const Iterator<T>& iterator) const { return (_ptr == iterator.getConstPtr()); }
bool operator!=(const Iterator<T>& iterator) const { return (_ptr != iterator.getConstPtr()); }
bool operator<(const Iterator<T>& iterator) const { return (_ptr < iterator.getConstPtr()); }
bool operator>(const Iterator<T>& iterator) const { return (_ptr > iterator.getConstPtr()); }
void movePtr(const Index& movement) {
auto byteptr = ((Byte*)_ptr);