KaMPIng 0.1.1
Flexible and (near) zero-overhead C++ bindings for MPI
|
Constructs a MPI_Datatype for a struct-like type. More...
#include <mpi_datatype.hpp>
Static Public Member Functions | |
static MPI_Datatype | data_type () |
The MPI_Datatype corresponding to the type. | |
Static Public Attributes | |
static constexpr TypeCategory | category = TypeCategory::struct_like |
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. | |
Constructs a MPI_Datatype for a struct-like type.
T | The type to construct the MPI_Datatype for. |
This requires that T
is a std::pair
, std::tuple
or a type that is reflectable with pfr. If you do not agree with PFR's decision if a type is implicitly reflectable, you can override it by providing a specialization of pfr::is_reflectable
with the tag kamping_tag.