find

find#

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

◆ find() [1/4]

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 iterator stdgpu::unordered_map< Key, T, 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