diff --git a/AK/CircularQueue.h b/AK/CircularQueue.h index 0dc39afdec1..7ffc111bd35 100644 --- a/AK/CircularQueue.h +++ b/AK/CircularQueue.h @@ -46,6 +46,8 @@ public: return value; } + const T& at(int index) const { return m_elements[(m_head + index) % Capacity]; } + class ConstIterator { public: bool operator!=(const ConstIterator& other) { return m_index != other.m_index; }