diff options
Diffstat (limited to 'src/context/cdlist.h')
-rw-r--r-- | src/context/cdlist.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/context/cdlist.h b/src/context/cdlist.h index c22d617b0..9d7709589 100644 --- a/src/context/cdlist.h +++ b/src/context/cdlist.h @@ -384,6 +384,16 @@ public: /** Prefix decrement */ const_iterator& operator--() { --d_it; return *this; } + /** operator+ */ + const_iterator operator+(long signed int off) const { + return const_iterator(d_it + off); + } + + /** operator+ */ + const_iterator operator+(long unsigned int off) const { + return const_iterator(d_it + off); + } + // Postfix operations on iterators: requires a Proxy object to // hold the intermediate value for dereferencing class Proxy { |