operator[]

operator[]#

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

◆ operator[]() [1/2]

template<typename Block = bitset_default_type, typename Allocator = safe_device_allocator<Block>>
STDGPU_DEVICE_ONLY reference stdgpu::bitset< Block, Allocator >::operator[] ( const index_t  n)

Returns a reference object to the bit at the given position.

Parameters
[in]nThe position
Returns
A reference object to the bit at this position
Precondition
0 <= n < size()