max

max#

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

◆ max()

template<class T >
constexpr STDGPU_HOST_DEVICE const T & stdgpu::max ( const T &  a,
const T &  b 
)
constexpr

Computes the maximum of the given values.

Template Parameters
TThe type of the values
Parameters
[in]aA value
[in]bAnother value
Returns
a if a >= b, b otherwise