diff --git a/AK/Vector.h b/AK/Vector.h index 9c81689d804..0f6bef51794 100644 --- a/AK/Vector.h +++ b/AK/Vector.h @@ -91,6 +91,13 @@ public: m_size = other.size(); } + explicit Vector(Span other) requires(!IsLvalueReference) + { + ensure_capacity(other.size()); + TypedTransfer::copy(data(), other.data(), other.size()); + m_size = other.size(); + } + template Vector(Vector const& other) {