operator=

operator=#

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

◆ operator=()

template<typename T >
STDGPU_HOST_DEVICE T stdgpu::atomic_ref< T >::operator= ( const T  desired)

Replaces the current value with desired.

Parameters
[in]desiredThe value to store to the atomic object
Returns
The desired value
Note
Equivalent to store()