KaMPIng 0.1.1
Flexible and (near) zero-overhead C++ bindings for MPI
|
Wrapper struct for std::min. 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::min.
Other than the operators defined in <functional>
like std::plus
, std::min
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 |