diff --git a/src/core/smallvec_type.hpp b/src/core/smallvec_type.hpp --- a/src/core/smallvec_type.hpp +++ b/src/core/smallvec_type.hpp @@ -35,12 +35,20 @@ protected: public: SmallVector() : data(NULL), items(0), capacity(0) { } + /** + * Copy constructor. + * @param other The other vector to copy. + */ template SmallVector(const SmallVector &other) : data(NULL), items(0), capacity(0) { MemCpyT(this->Append(other.Length()), other.Begin(), other.Length()); } + /** + * Assignment. + * @param other The new vector that. + */ template SmallVector &operator=(const SmallVector &other) { @@ -318,6 +326,6 @@ public: } }; -typedef AutoFreeSmallVector StringList; +typedef AutoFreeSmallVector StringList; ///< Type for a list of strings. #endif /* SMALLVEC_TYPE_HPP */