_d_newclassT

Create a new class instance. Allocates memory and sets fields to their initial value, but does not call a constructor.

new C() // _d_newclass!(C)()
@trusted
T
_d_newclassT
(
T
)
()
if (
is(T == class)
)

Return Value

Type: T

newly created object

Meta