flip

flip#

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

◆ flip()

template<typename Block = bitset_default_type, typename Allocator = safe_device_allocator<Block>>
STDGPU_DEVICE_ONLY bool stdgpu::bitset< Block, Allocator >::reference::flip ( )
noexcept

Flips the bit atomically.

Returns
The old value of the bit