KaMPIng 0.1.0
(Near) zero-overhead C++ MPI bindings.
|
The type trait that maps a C++ type T
to a type trait that can be used to construct an MPI_Datatype.
More...
#include <mpi_datatype.hpp>
Public Types | |
using | base = decltype(type_dispatcher<T>()) |
The base type of this trait obtained via type_dispatcher. This defines how the data type is constructed in mpi_type_traits::data_type() . | |
Static Public Member Functions | |
static MPI_Datatype | data_type () |
The MPI_Datatype corresponding to the type T. | |
Static Public Attributes | |
static constexpr TypeCategory | category = base::category |
The category of the type. | |
static constexpr bool | has_to_be_committed = category_has_to_be_committed(category) |
Whether the type has to be committed before it can be used in MPI calls. | |
The type trait that maps a C++ type T
to a type trait that can be used to construct an MPI_Datatype.
The default behavior is controlled by type_dispatcher. If you want to support a type that is not supported by the default behavior, you can specialize this trait. For example: