empty

empty#

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

◆ empty()

template<typename Key , typename T , typename Hash = hash<Key>, typename KeyEqual = equal_to<Key>, typename Allocator = safe_device_allocator<pair<const Key, T>>>
STDGPU_HOST_DEVICE bool stdgpu::unordered_map< Key, T, Hash, KeyEqual, Allocator >::empty ( ) const

Checks if the object is empty.

Returns
True if the object is empty, false otherwise