From 4a2ef231b84cc5b118366d20ccbb6427e9fb0805 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Sun, 30 Apr 2023 20:27:41 -0400 Subject: [PATCH] AK: Add `FixedArray::unchecked_at` --- AK/FixedArray.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AK/FixedArray.h b/AK/FixedArray.h index ac60f4052c..08c8200580 100644 --- a/AK/FixedArray.h +++ b/AK/FixedArray.h @@ -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);