KaMPIng 0.1.1
Flexible and (near) zero-overhead C++ bindings for MPI
|
Wrapper struct for std::max. More...
#include <mpi_ops.hpp>
Public Member Functions | |
constexpr T | operator() (T const &lhs, T const &rhs) const |
Returns the maximum of the two parameters. | |
Wrapper struct for std::max.
Other than the operators defined in <functional>
like std::plus
, std::max
is a function and not a function object. To enable template matching for detection of builtin MPI operations we therefore need to wrap it. The actual implementation is used in case that the operation is a builtin operation for the given datatype.
T | the type of the operands |
|
inlineconstexpr |
Returns the maximum of the two parameters.
lhs | the first operand |
rhs | the second operand |