clear

clear#

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

◆ clear()

template<typename T , typename Allocator = safe_device_allocator<T>>
template<typename ExecutionPolicy , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
void stdgpu::deque< T, Allocator >::clear ( ExecutionPolicy &&  policy)

Clears the complete object.

Template Parameters
ExecutionPolicyThe type of the execution policy
Parameters
[in]policyThe execution policy, e.g. host or device, corresponding to the allocator