From 5b5ed220bc2b81432e3da965a753661701c1f994 Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Fri, 19 Aug 2016 10:26:47 -0700 Subject: [PATCH] add BufferView::Iterator operator<() and friend --- libraries/gpu/src/gpu/Buffer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/gpu/src/gpu/Buffer.h b/libraries/gpu/src/gpu/Buffer.h index da1a987bee..d6b8f943dd 100644 --- a/libraries/gpu/src/gpu/Buffer.h +++ b/libraries/gpu/src/gpu/Buffer.h @@ -224,6 +224,8 @@ public: bool operator==(const Iterator& iterator) const { return (_ptr == iterator.getConstPtr()); } bool operator!=(const Iterator& iterator) const { return (_ptr != iterator.getConstPtr()); } + bool operator<(const Iterator& iterator) const { return (_ptr < iterator.getConstPtr()); } + bool operator>(const Iterator& iterator) const { return (_ptr > iterator.getConstPtr()); } void movePtr(const Index& movement) { auto byteptr = ((Byte*)_ptr);