You are here: Symbol Reference > MtxVecInt Namespace > Classes > TMtxInt Class > TMtxInt.Create Constructor
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxInt.Create Constructor

Create a new TMtxInt object.

Pascal
constructor Create; override; overload;

Creates a new TMtxInt object. You should use the MtxVec.CreateIt where possible and avoid using the Create constructor, but only in cases when the object is created and destroy within the same routine.

var A: TMtxInt; begin A := TMtxInt.Create; try A.Size(20,20); finally A.Free; // takes about 500 CPU cycles end; CreateIt(A); try A.Size(20,20,false); finally FreeIt(A); // takes only about 40 CPU cycles end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!