diff --git a/deps/ox/src/ox/std/span.hpp b/deps/ox/src/ox/std/span.hpp index 871dd882..381e83eb 100644 --- a/deps/ox/src/ox/std/span.hpp +++ b/deps/ox/src/ox/std/span.hpp @@ -163,6 +163,24 @@ class Span { return *this; } + constexpr Span operator++(int) noexcept { + ++m_items; + --m_size; + if (!m_size) [[unlikely]] { + m_items = nullptr; + } + return *this; + } + + constexpr Span operator++() noexcept { + ++m_items; + --m_size; + if (!m_size) [[unlikely]] { + m_items = nullptr; + } + return *this; + } + [[nodiscard]] constexpr auto data() const noexcept { return m_items;