Vector(const Vector<T, AllocatorT>& vector) [Vector template]

Allocates a new vector object that is a copy of an existing Vector.

If the original vector contained objects, for example Vector<String> then a new object will be allocated, so the values will not be linked together after allocation.

If the original vector contained pointers such as Vector<void *>, the pointers will be copied, which can lead to object lifetime confusion.

Vector(const Vector<T, AllocatorT>& vector);