set

set#

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

◆ set() [3/3]

template<typename Block = bitset_default_type, typename Allocator = safe_device_allocator<Block>>
template<typename ExecutionPolicy , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
void stdgpu::bitset< Block, Allocator >::set ( ExecutionPolicy &&  policy)

Sets all bits.

Template Parameters
ExecutionPolicyThe type of the execution policy
Parameters
[in]policyThe execution policy, e.g. host or device, corresponding to the allocator
Postcondition
count() == size()