summaryrefslogtreecommitdiff
path: root/src/context/cdlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/context/cdlist.h')
-rw-r--r--src/context/cdlist.h10
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 {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback