deallocate

deallocate#

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

◆ deallocate()

template<typename T >
void stdgpu::safe_managed_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)