find

find#

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

◆ find() [1/4]

template<typename Key , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<Key>>
STDGPU_DEVICE_ONLY iterator stdgpu::unordered_set< Key, Hash, KeyEqual, Allocator >::find ( const key_type key)

Determines if the given key is stored in the container.

Parameters
[in]keyThe key
Returns
An iterator to the position of the requested key if it was found, end() otherwise