KaMPIng 0.2.1
(Near) zero-overhead MPI wrapper for C++
Loading...
Searching...
No Matches
kamping::types::contiguous_type< T, N, Lookup > Struct Template Reference

Constructs a contiguous MPI type of N elements of type T using MPI_Type_contiguous. More...

#include <contiguous_type_fwd.hpp>

Inheritance diagram for kamping::types::contiguous_type< T, N, Lookup >:

Static Public Member Functions

static MPI_Datatype data_type ()
 Returns the MPI_Datatype for a contiguous block of N elements of type T.
 

Static Public Attributes

static constexpr TypeCategory category = TypeCategory::contiguous
 The type's TypeCategory.
 
static constexpr bool has_to_be_committed
 Whether the type must be committed before use.
 

Detailed Description

template<typename T, size_t N, typename Lookup = type_dispatcher_lookup>
struct kamping::types::contiguous_type< T, N, Lookup >

Constructs a contiguous MPI type of N elements of type T using MPI_Type_contiguous.

Template Parameters
TThe element type.
NThe number of elements.
LookupThe lookup policy used to resolve the MPI_Datatype for T. Defaults to type_dispatcher_lookup, which uses kamping::types::mpi_type_traits.

Member Data Documentation

◆ has_to_be_committed

template<typename T , size_t N, typename Lookup = type_dispatcher_lookup>
constexpr bool kamping::types::contiguous_type< T, N, Lookup >::has_to_be_committed
staticconstexpr
Initial value:
=
constexpr bool category_has_to_be_committed(TypeCategory category)
Returns whether an MPI_Datatype of the given category must be committed before use.
Definition builtin_types.hpp:35
static constexpr TypeCategory category
The type's TypeCategory.
Definition contiguous_type_fwd.hpp:40

Whether the type must be committed before use.


The documentation for this struct was generated from the following files: