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

(synced from 3824788a1a)
This commit is contained in:
2024-06-12 22:52:20 -05:00
parent 420537b287
commit a7f2f42baa
+4
View File
@@ -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];
}