nogc_new

Allocates a new instance of T using the DLang allocation strategy on the specified heap.

  1. Ref!T nogc_new(Args args)
  2. Ref!T nogc_new(NuHeap heap, Args args)
    @nogc @trusted
    Ref!T
    nogc_new
    (
    T
    Args...
    )
    (,
    auto ref Args args
    )

Parameters

heap NuHeap

The heap to allocate the instance on.

args Args

The arguments to pass to the type's constructor.

See Also

Meta