VectorInt::Resize Method

Overload List

#SignatureDescription
1TVecInt *Resize(TVecInt *Src, const int Len, const bool ZeroIt = false) const;Resizes vector size while preserving values.
2TVecInt *Resize(const int Len, const bool ZeroIt = false) const;Resizes calling vector Length to Len.

Overload 1: TVecInt *Resize(TVecInt *Src, const int Len, const bool ZeroIt = false) const;

Resizes vector size while preserving values.

#NameTypeDescription
1SrcTVecInt *
2Lenconst int
3ZeroIt = falseconst bool
Remarks:

Resizes calling vector TMtxVecBase::Length to Len and fills it with Src vector first Len values. If Src length is less than Len and ZeroIt parameter is true, the remaining calling vector values are set to zero.

Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: TVecInt *Resize(const int Len, const bool ZeroIt = false) const;

Resizes calling vector Length to Len.

#NameTypeDescription
1Lenconst int
2ZeroIt = falseconst bool
Remarks:

If VectorInt::Length is less than Len and ZeroIt parameter is true, the remaining calling vector values are set to zero.

Declared in Dew::Math::VectorInt · Dew.Math/MtxExprInt.h · Cross-compiler