diff --git a/AK/FixedArray.h b/AK/FixedArray.h index 4fed8a86c90..90cc2d6bb80 100644 --- a/AK/FixedArray.h +++ b/AK/FixedArray.h @@ -160,6 +160,12 @@ public: ::swap(m_elements, other.m_elements); } + void fill_with(T const& value) + { + for (size_t i = 0; i < m_size; ++i) + m_elements[i] = value; + } + using Iterator = SimpleIterator; using ConstIterator = SimpleIterator;