diff --git a/BAN/include/BAN/Vector.h b/BAN/include/BAN/Vector.h index 446ea7edcf..6c7d47d933 100644 --- a/BAN/include/BAN/Vector.h +++ b/BAN/include/BAN/Vector.h @@ -19,6 +19,7 @@ namespace BAN public: Vector() = default; + Vector(const Vector&); ~Vector(); ErrorOr PushBack(const T&); @@ -51,6 +52,15 @@ namespace BAN size_type m_size = 0; }; + template + Vector::Vector(const Vector& other) + { + MUST(EnsureCapasity(other.m_size)); + for (size_type i = 0; i < other.m_size; i++) + m_data[i] = other[i]; + m_size = other.m_size; + } + template Vector::~Vector() {