AK: Add FixedArray::data()

This commit is contained in:
William McPherson 2020-01-31 03:00:56 +11:00 committed by Andreas Kling
parent 61a6ae038e
commit ddefb95b21
Notes: sideshowbarker 2024-07-19 09:44:35 +09:00

View file

@ -71,6 +71,15 @@ public:
size_t size() const { return m_size; }
T* data()
{
return m_elements;
}
const T* data() const
{
return m_elements;
}
T& operator[](size_t index)
{
ASSERT(index < m_size);