store

store#

stdgpu: stdgpu::atomic::store
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ store() [1/2]

template<typename T , typename Allocator = safe_device_allocator<T>>
STDGPU_HOST_DEVICE void stdgpu::atomic< T, Allocator >::store ( const T  desired,
const memory_order  order = memory_order_seq_cst 
)

Atomically replaces the current value with desired one.

Parameters
[in]desiredThe value to store to the atomic object
[in]orderThe memory order