Skip to content

new

The new keyword is a special operator for heap memory allocation.

Syntax

new T;
new T[N];
new<AddrAlign> T;
new<AddrAlign> T[N];
new T with {VaArgs};
new T[N] with {VaArgs};
new<AddrAlign> T with {VaArgs};
new<AddrAlign> T[N] with {VaArgs};
new T from Allocator;
new T[N] from Allocator;
new<AddrAlign> T from Allocator;
new<AddrAlign> T[N] from Allocator;
new T with {VaArgs} from Allocator;
new T[N] with {VaArgs} from Allocator;
new<AddrAlign> T with {VaArgs} from Allocator;
new<AddrAlign> T[N] with {VaArgs} from Allocator;