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>>
STDGPU_HOST_DEVICE T stdgpu::atomic< T, Allocator >::operator= ( const T  desired)

Atomically replaces the current value with desired one.

Parameters
[in]desiredThe value to store to the atomic object
Returns
The desired value