VTK-m  1.8
Public Member Functions | List of all members
vtkm::Sum Struct Reference

Binary Predicate that takes two arguments argument x, and y and returns sum (addition) of the two values. More...

#include <BinaryOperators.h>

Public Member Functions

template<typename T , typename U >
VTKM_EXEC_CONT auto operator() (const T &x, const U &y) const -> decltype(x+y)
 

Detailed Description

Binary Predicate that takes two arguments argument x, and y and returns sum (addition) of the two values.

Note
Requires a suitable definition of operator+(T, U).

Member Function Documentation

◆ operator()()

template<typename T , typename U >
VTKM_EXEC_CONT auto vtkm::Sum::operator() ( const T &  x,
const U &  y 
) const -> decltype(x + y)
inline

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