free

Deallocates the memory referenced by array.ptr from allocator and sets array to null.

If array.ptr is null, no action occurs.

  1. void free(A allocator, T[] array, bool gcScan)
    void
    free
    (
    T
    A
    )
    (
    ref A allocator
    ,
    ref T[] array
    ,
    in bool gcScan = hasIndirections!T
    )
  2. void free(A allocator, T* ptr, bool gcScan)

Meta