nogc_trydelete

Attempts to deallocate the specified instance of T from the specified heap. 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. bool nogc_trydelete(T obj_)
  2. bool nogc_trydelete(NuHeap heap, T obj_)
    @nogc @trusted nothrow
    bool
    nogc_trydelete
    (
    T
    bool doFree = true
    )
    (,
    ref T obj_
    )
  3. bool nogc_trydelete(T[] objects)

Parameters

heap NuHeap

The heap to allocate the instance on.

obj_ T

Instance to destroy and deallocate.

Return Value

Type: bool

Whether the operation succeeded.

Meta