24#include "kamping/kassert/kassert.hpp"
30namespace kamping::types {
35template <
typename T,
size_t N,
typename Lookup>
39 if constexpr (std::is_same_v<T, std::byte>) {
44 "\n --> Type not supported by the current Lookup policy. "
45 "Please specialize mpi_type_traits for this type or provide a custom Lookup."
49 int const count =
static_cast<int>(
N);
STL-compatible allocator for requesting memory using the builtin MPI allocator.
Definition allocator.hpp:32
Forward declarations for contiguous_type and byte_serialized to break include cycles.
static MPI_Datatype data_type()
Returns the MPI_Datatype for a contiguous block of N elements of type T.
Definition contiguous_type.hpp:36
Type traits and dispatcher for mapping C++ types to MPI datatypes.