operator()

operator()#

stdgpu: stdgpu::plus::operator()
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ operator()()

template<typename T = void>
STDGPU_HOST_DEVICE T stdgpu::plus< T >::operator() ( const T &  lhs,
const T &  rhs 
) const

Adds the two values.

Parameters
[in]lhsThe first value
[in]rhsThe second value
Returns
The sum of the given values