[ox/std] Add operator-> to SpanIterator
This commit is contained in:
parent
6df77a23ab
commit
963ec5d3f7
4
deps/ox/src/ox/std/iterator.hpp
vendored
4
deps/ox/src/ox/std/iterator.hpp
vendored
@ -128,6 +128,10 @@ struct SpanIterator {
|
|||||||
return operator-=(1);
|
return operator-=(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constexpr PtrType operator->() const noexcept {
|
||||||
|
return &m_t[m_offset];
|
||||||
|
}
|
||||||
|
|
||||||
constexpr RefType operator*() const noexcept {
|
constexpr RefType operator*() const noexcept {
|
||||||
return m_t[m_offset];
|
return m_t[m_offset];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user