free

Deallocates the memory referenced by ptr from allocator.

If ptr is null, no action occurs.

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

Meta