Skip to content

Commit 0c2672e

Browse files
authored
Merge pull request #3298 from heshpdx/patch-1
librrgraph: add array operator
2 parents 6fed73f + 7d97865 commit 0c2672e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs/librrgraph/src/base/rr_graph_storage.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ class edge_sort_iterator {
173173
return &this->swapper_;
174174
}
175175

176+
edge_swapper& operator[](ssize_t n) const {
177+
return *(*this + n);
178+
}
179+
176180
edge_sort_iterator& operator+=(ssize_t n) {
177181
swapper_.idx_ += n;
178182
return *this;

0 commit comments

Comments
 (0)