cpp_trynew

Attempts to allocate 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 nothrow
Ref!T
cpp_trynew
(
T
bool doXCtor = true
Args...
)
(
auto ref Args args
)

See Also

@(D nogc_new), nogc_trynew, cpp_new

Meta