test

test#

stdgpu: stdgpu::bitset::test
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ test()

template<typename Block = bitset_default_type, typename Allocator = safe_device_allocator<Block>>
STDGPU_DEVICE_ONLY bool stdgpu::bitset< Block, Allocator >::test ( const index_t  n) const

Returns the bit at the given position.

Parameters
[in]nThe position
Returns
The bit at this position
Precondition
0 <= n < size()