emplace

emplace#

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

◆ emplace()

template<typename Key , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<Key>>
template<class... Args>
STDGPU_DEVICE_ONLY pair< iterator, bool > stdgpu::unordered_set< Key, 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