deallocate

deallocate#

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

◆ deallocate()

template<typename Allocator >
static void stdgpu::allocator_traits< Allocator >::deallocate ( Allocator &  a,
pointer  p,
index_type  n 
)
static

Deallocates the given memory block.

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