diff --git a/AK/Vector.h b/AK/Vector.h index c5c857aa63..13592d017f 100644 --- a/AK/Vector.h +++ b/AK/Vector.h @@ -326,6 +326,14 @@ public: unchecked_append(T(value)); } + template + void empend(Args&&... args) + { + grow_capacity(m_size + 1); + new (slot(m_size)) T(forward(args)...); + ++m_size; + } + void append(T&& value) { grow_capacity(size() + 1);