Skip to content

Commit

Permalink
u/fragmented_vector: added operator-> to iterator
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Maslanka <michal@redpanda.com>
  • Loading branch information
mmaslankaprv committed Jul 7, 2023
1 parent bec31a5 commit 114daef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v/utils/fragmented_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ class fragmented_vector {
return tmp;
}

pointer operator->() const { return &_vec->operator[](_index); }

iter operator+(difference_type offset) { return iter{*this} += offset; }
iter operator-(difference_type offset) { return iter{*this} -= offset; }

Expand Down

0 comments on commit 114daef

Please sign in to comment.