emplace

emplace#

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

◆ emplace()

template<typename Key , typename T , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<pair<const Key, T>>>
template<class... Args>
STDGPU_DEVICE_ONLY pair< iterator, bool > stdgpu::unordered_map< Key, T, Hash, KeyEqual, Allocator >::emplace ( Args &&...  args)

Inserts the given value into the container.

Parameters
[in]argsThe arguments to construct the element
Returns
An iterator to the inserted pair and true if the insertion was successful, end() and false otherwise