deallocate_filled

deallocate_filled#

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

◆ deallocate_filled()

template<typename Allocator >
template<typename ExecutionPolicy , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
static void stdgpu::allocator_traits< Allocator >::deallocate_filled ( ExecutionPolicy &&  policy,
Allocator &  a,
pointer  p,
index_type  n 
)
static

Deallocates the given filled memory block.

Template Parameters
ExecutionPolicyThe type of the execution policy
Parameters
[in]policyThe execution policy, e.g. host or device, corresponding to the allocator
[in]aThe allocator to use
[in]pA pointer to the memory block
[in]nThe number of allocated elements (must match the size during allocation)