diff --git a/AK/Queue.h b/AK/Queue.h index 7a21c51b3a..157e07ea07 100644 --- a/AK/Queue.h +++ b/AK/Queue.h @@ -40,6 +40,12 @@ public: return value; } + const T& head() const + { + ASSERT(!is_empty()); + return (*m_segments.first())[m_index_into_first]; + } + void clear() { m_segments.clear();