nogc_delete

Finalizes obj_ by calling its destructor (if any).

Notes: If doFree is true, memory associated with obj_ will additionally be freed after finalizers have run; otherwise the object is reset to its original state.

  1. void nogc_delete(T obj_)
    @nogc @trusted
    void
    nogc_delete
    (
    T
    bool doFree = true
    )
    (
    ref T obj_
    )
  2. void nogc_delete(NuHeap heap, T obj_)
  3. void nogc_delete(T[] objects)

Parameters

obj_ T

Instance to destroy and deallocate.

Meta