alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::operation::Dec Struct Reference

The decrement function object. More...

#include <operation.hpp>

Public Member Functions

template<typename T>
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto operator() (T *const addr, T const &value) const -> T
 Decrement down to 0, then reset to value.

Detailed Description

The decrement function object.

Definition at line 127 of file operation.hpp.

Member Function Documentation

◆ operator()()

template<typename T>
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::operation::Dec::operator() ( T *const addr,
T const & value ) const -> T
inline

Decrement down to 0, then reset to value.

Returns
The old value of addr.

Definition at line 134 of file operation.hpp.


The documentation for this struct was generated from the following file: