load

load#

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

◆ load() [2/2]

template<typename T >
template<typename ExecutionPolicy , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) >
T stdgpu::atomic_ref< T >::load ( ExecutionPolicy &&  policy,
const memory_order  order = memory_order_seq_cst 
) const

Atomically loads and returns the current value of the atomic object.

Template Parameters
ExecutionPolicyThe type of the execution policy
Parameters
[in]policyThe execution policy
[in]orderThe memory order
Returns
The current value of this object