diff --git a/AK/Vector.h b/AK/Vector.h index b58775922c..0fb57faa9d 100644 --- a/AK/Vector.h +++ b/AK/Vector.h @@ -447,6 +447,16 @@ public: m_size += other_size; } + void prepend(const T* values, size_t count) + { + if (!count) + return; + grow_capacity(size() + count); + TypedTransfer::move(slot(count), slot(0), m_size); + TypedTransfer::copy(slot(0), values, count); + m_size += count; + } + void append(const T* values, size_t count) { if (!count)