destroy_n

destroy_n#

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

◆ destroy_n()

template<typename ExecutionPolicy , typename Iterator , typename Size , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
Iterator stdgpu::destroy_n ( ExecutionPolicy &&  policy,
Iterator  first,
Size  n 
)

Destroys the range of values.

Template Parameters
ExecutionPolicyThe type of the execution policy
IteratorThe iterator type of the values
SizeThe size type
Parameters
[in]policyThe execution policy, e.g. host or device
[in]firstAn iterator to the begin of the value range
[in]nThe number of elements in the value range
Returns
An iterator to the end of the value range