Aspose::Cells::Vector class

Vector class

Vector template class. The elements are stored contiguously.

template<typenameT>class Vector
ParameterDescription
T

Methods

MethodDescription
GetData() constGets the address of the element array in this vector.
GetLength() constGets the length of the elements in this Vector.
IsNull() constChecks whether the element array is nullptr.
explicit operator bool() constoperator bool()
operator=(const Vector& src)operator=
operator[](int32_t index) constArray subscript operator.
Vector(int32_t len)Constructs an element Vector of the specified length.
Vector(const T* data, int32_t len)Constructs from an element array. All elements will be copied.
Vector(std::initializer_list<T> init)Constructs using initialization list.
Vector(const Vector& src)Copy constructor.
~Vector()Destructor.

See Also