insert

insert#

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

◆ insert() [1/3]

template<typename Key , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<Key>>
STDGPU_DEVICE_ONLY pair< iterator, bool > stdgpu::unordered_set< Key, Hash, KeyEqual, Allocator >::insert ( const value_type value)

Inserts the given value into the container.

Parameters
[in]valueThe new value
Returns
An iterator to the inserted pair and true if the insertion was successful, end() and false otherwise