[ox/std] Add non-const operator[] to Pair
All checks were successful
Build / build (push) Successful in 2m36s
All checks were successful
Build / build (push) Successful in 2m36s
This commit is contained in:
parent
1eac7e1e56
commit
3824788a1a
4
deps/ox/src/ox/std/span.hpp
vendored
4
deps/ox/src/ox/std/span.hpp
vendored
@ -228,6 +228,10 @@ class Span {
|
||||
return iterator<const T&, const T*, true>(m_items, MaxValue<size_type>, m_size);
|
||||
}
|
||||
|
||||
constexpr T &operator[](std::size_t i) noexcept {
|
||||
return m_items[i];
|
||||
}
|
||||
|
||||
constexpr const T &operator[](std::size_t i) const noexcept {
|
||||
return m_items[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user