Frees an array.
unsafe fn free_array<T>(pool: &mut <Self as Allocator>::Pool, ptr: *mut T, num: usize) -> ()
| Name | Description |
|---|---|
| pool | |
| ptr | The pointer to the array. |
| num | The number of elements in the array. |
If T has size 0, this function performs no operation. Otherwise:
The pointer argument must be a pointer returned by a previous call to allocate_array or reallocate_array with the same allocator. The num argument must be the number of elements in the array.
Otherwise the behavior is undefined.
After this function returns the pointer argument becomes invalid and must no longer be used.