mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
AK: Add FixedArray::data()
This commit is contained in:
committed by
Andreas Kling
parent
61a6ae038e
commit
ddefb95b21
@@ -71,6 +71,15 @@ public:
|
|||||||
|
|
||||||
size_t size() const { return m_size; }
|
size_t size() const { return m_size; }
|
||||||
|
|
||||||
|
T* data()
|
||||||
|
{
|
||||||
|
return m_elements;
|
||||||
|
}
|
||||||
|
const T* data() const
|
||||||
|
{
|
||||||
|
return m_elements;
|
||||||
|
}
|
||||||
|
|
||||||
T& operator[](size_t index)
|
T& operator[](size_t index)
|
||||||
{
|
{
|
||||||
ASSERT(index < m_size);
|
ASSERT(index < m_size);
|
||||||
|
|||||||
Reference in New Issue
Block a user