1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-09 11:00:46 +00:00

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

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);