Skip to content

Commit a7fae8f

Browse files
authored
Merge pull request #2225 from hzeller/20230113-add-=-operator
Add operator-= as random access iterators need to provide that feature.
2 parents f669015 + 4b7f364 commit a7fae8f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libs/librrgraph/src/base/rr_graph_storage.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ class edge_sort_iterator {
160160
return *this;
161161
}
162162

163+
edge_sort_iterator& operator-=(ssize_t n) {
164+
swapper_.idx_ -= n;
165+
return *this;
166+
}
167+
163168
edge_sort_iterator& operator++() {
164169
++swapper_.idx_;
165170
return *this;

0 commit comments

Comments
 (0)