AK: Add FixedArray::unchecked_at

This commit is contained in:
Lucas CHOLLET 2023-04-30 20:27:41 -04:00 committed by Andreas Kling
parent 44905ed395
commit 4a2ef231b8
Notes: sideshowbarker 2024-07-17 03:03:15 +09:00

View file

@ -113,6 +113,11 @@ public:
return m_storage->elements[index];
}
T& unchecked_at(size_t index)
{
return m_storage->elements[index];
}
T const& at(size_t index) const
{
VERIFY(index < m_storage->size);