[ox/std] Add non-const operator[] to Pair
This commit is contained in:
parent
4657861607
commit
7649ee2a58
4
deps/nostalgia/deps/ox/src/ox/std/span.hpp
vendored
4
deps/nostalgia/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);
|
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 {
|
constexpr const T &operator[](std::size_t i) const noexcept {
|
||||||
return m_items[i];
|
return m_items[i];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user