freeMem

Frees a manually allocated pointer to a basic type. Like free() but for @safe context.

void
freeMem
nothrow @trusted @nogc
(
T
)
(
auto ref T src
)
if (
isPointer!T &&
isBasicType!(PointerTarget!T)
)

Parameters

src
Type: T

The pointer to free.

Meta