atomic_load_explicit

atomic_load_explicit#

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

◆ atomic_load_explicit()

template<typename T , typename Allocator >
STDGPU_HOST_DEVICE T stdgpu::atomic_load_explicit ( const atomic< T, Allocator > *  obj,
const memory_order  order 
)
noexcept

Loads and returns the current value of the atomic object.

Parameters
[in]objThe atomic object
[in]orderThe memory order
Returns
The current value of this object