insert

insert#

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

◆ insert() [2/3]

template<typename Key , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<Key>>
template<typename ExecutionPolicy , typename ValueIterator , STDGPU_DETAIL_OVERLOAD_IF( is_execution_policy_v< remove_cvref_t< ExecutionPolicy > > &&detail::is_iterator_v< ValueIterator >) >
void stdgpu::unordered_set< Key, Hash, KeyEqual, Allocator >::insert ( ExecutionPolicy &&  policy,
ValueIterator  begin,
ValueIterator  end 
)

Inserts the given range of elements into the container.

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