mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-07 00:19:27 +00:00
AK: Add FixedArray::unchecked_at
This commit is contained in:
parent
44905ed395
commit
4a2ef231b8
|
@ -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…
Reference in a new issue