operator^=

operator^=#

stdgpu: stdgpu::atomic::operator^=
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ operator^=()

template<typename T , typename Allocator = safe_device_allocator<T>>
template<STDGPU_DETAIL_OVERLOAD_IF(std::is_integral_v< T >) >
STDGPU_DEVICE_ONLY T stdgpu::atomic< T, Allocator >::operator^= ( const T  arg)
noexcept

Computes the atomic bitwise XOR with the argument. Equivalent to fetch_xor(arg) ^ arg.

Parameters
[in]argThe other argument of bitwise XOR
Returns
The new value