insert

insert#

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

◆ insert() [1/3]

template<typename Key , typename T , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<pair<const Key, T>>>
STDGPU_DEVICE_ONLY pair< iterator, bool > stdgpu::unordered_map< Key, T, 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