|
KaMPIng 0.2.1
(Near) zero-overhead MPI wrapper for C++
|
Type trait that maps a (functor type, element type) pair to its builtin MPI_Op.
More...
#include <reduce_ops.hpp>
Static Public Member Functions | |
| static MPI_Op | op () |
Returns the predefined MPI_Op constant for this operation. | |
Static Public Attributes | |
| static constexpr bool | is_builtin |
true if Op applied to T corresponds to a predefined MPI operation constant. | |
| static constexpr T | identity |
| The identity element for this operation and data type. | |
Type trait that maps a (functor type, element type) pair to its builtin MPI_Op.
mpi_operation_traits<Op, T>::is_builtin is true when Op applied to T corresponds to a predefined MPI operation constant. When true, op() returns that constant and identity holds the identity element for the operation.
Example:
| Op | Functor type of the operation. |
| T | Element type to apply the operation to. |
|
static |
Returns the predefined MPI_Op constant for this operation.
Only defined when is_builtin is true.
|
staticconstexpr |
The identity element for this operation and data type.
Only defined when is_builtin is true.