Skip to content

Commit

Permalink
Add iter_t::operator++(int) overload
Browse files Browse the repository at this point in the history
  • Loading branch information
TriceHelix authored and martinus committed Dec 3, 2024
1 parent f30ed41 commit 00a0c1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/ankerl/unordered_dense.h
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,12 @@ class segmented_vector {
return *this;
}

constexpr auto operator++(int) noexcept -> iter_t {
iter_t prev(*this);
this->operator++();
return prev;
}

constexpr auto operator+(difference_type diff) noexcept -> iter_t {
return {m_data, static_cast<size_t>(static_cast<difference_type>(m_idx) + diff)};
}
Expand Down

0 comments on commit 00a0c1a

Please sign in to comment.