cpp_new

Allocates a new instance of T using the C++ allocation strategy.

Notes: doXCtor is used to specify whether to also call any D mangled constructors defined for the C++ type.

@nogc @trusted
Ref!T
cpp_new
(
T
bool doXCtor = true
Args...
)
(
auto ref Args args
)

See Also

@(D nogc_new), nogc_trynew, cpp_trynew,

Meta