[ox/std] Add non-const operator[] to Pair

This commit is contained in:
Gary Talent 2024-06-12 22:52:20 -05:00
parent 4657861607
commit 7649ee2a58

View File

@ -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];
} }