diff --git a/include/ankerl/unordered_dense.h b/include/ankerl/unordered_dense.h index f614de8..c86c637 100644 --- a/include/ankerl/unordered_dense.h +++ b/include/ankerl/unordered_dense.h @@ -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(static_cast(m_idx) + diff)}; }