operator–

operator–#

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

◆ operator--() [2/2]

template<typename T >
template<STDGPU_DETAIL_OVERLOAD_IF(std::is_integral_v< T >) >
STDGPU_DEVICE_ONLY T stdgpu::atomic_ref< T >::operator-- ( int  )
noexcept

Atomically decrements the current value. Equivalent to fetch_sub(1)

Returns
The old value