operator[]

operator[]#

stdgpu: stdgpu::bitset::operator[]
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ operator[]() [2/2]

template<typename Block = bitset_default_type, typename Allocator = safe_device_allocator<Block>>
STDGPU_DEVICE_ONLY bool stdgpu::bitset< Block, Allocator >::operator[] ( 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()