[ox/std] Add operator-> to SpanIterator
This commit is contained in:
parent
b290fa5745
commit
9296076ec6
@ -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