mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Add FixedArray::unchecked_at
This commit is contained in:
parent
44905ed395
commit
4a2ef231b8
Notes:
sideshowbarker
2024-07-17 03:03:15 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/4a2ef231b8 Pull-request: https://github.com/SerenityOS/serenity/pull/18590 Reviewed-by: https://github.com/timschumi ✅
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…
Reference in a new issue