mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
AK: Add FixedArray::unchecked_at
This commit is contained in:
parent
44905ed395
commit
4a2ef231b8
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue