_nu_cpp_new

Allocates a new C++ type on the heap using its default constructor.

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

@nogc
Ref!T
_nu_cpp_new
(
T
bool doXCtor
Args...
)
(
auto ref Args args
)
if ()

Parameters

args Args

The arguments to pass to the type's constructor.

Return Value

Type: Ref!T

A newly allocated and instantiated C++ object using the C++ Runtime.

Meta