newPtr

Returns a pointer to a new, GC-free, basic variable. Any variable allocated using this function must be manually freed with freeMem.

T*
newPtr
(
T
bool preFill = false
A...
)
(
A a
)
if (
isBasicType!T &&
A.length <= 1
)

Parameters

T

The type of the pointer to return.

preFill

Optional, boolean indicating if the result has to be initialized.

a
Type: A

Optional, the value.

Meta