From a9ead7b0b6f8a59190f120b30ae501366a5c5a8e Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 19 May 2024 22:14:28 -0500 Subject: [PATCH] [ox/std] Add operator-> to SpanIterator (synced from 963ec5d3f7e6d0200a044ec20f4db08c283429d9) --- src/ox/std/iterator.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ox/std/iterator.hpp b/src/ox/std/iterator.hpp index a93e75c2f..b83106070 100644 --- a/src/ox/std/iterator.hpp +++ b/src/ox/std/iterator.hpp @@ -128,6 +128,10 @@ struct SpanIterator { return operator-=(1); } + constexpr PtrType operator->() const noexcept { + return &m_t[m_offset]; + } + constexpr RefType operator*() const noexcept { return m_t[m_offset]; }