deallocate

deallocate#

stdgpu: stdgpu::safe_host_allocator::deallocate
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ deallocate()

template<typename T >
void stdgpu::safe_host_allocator< T >::deallocate ( T *  p,
index64_t  n 
)

Deallocates the given memory block.

Parameters
[in]pA pointer to the memory block
[in]nThe number of allocated elements (must match the size during allocation)