22#include "kamping/kassert/kassert.hpp"
24namespace kamping::types {
56 std::swap(_type,
other._type);
STL-compatible allocator for requesting memory using the builtin MPI allocator.
Definition allocator.hpp:32
RAII wrapper that commits an MPI_Datatype on construction and frees it on destruction.
Definition scoped_datatype.hpp:33
ScopedDatatype(ScopedDatatype const &)=delete
Deleted copy constructor.
ScopedDatatype(ScopedDatatype &&other) noexcept
Move constructor.
Definition scoped_datatype.hpp:51
ScopedDatatype & operator=(ScopedDatatype &&other) noexcept
Move assignment.
Definition scoped_datatype.hpp:55
~ScopedDatatype()
Free the MPI_Datatype.
Definition scoped_datatype.hpp:64
MPI_Datatype const & data_type() const
Get the MPI_Datatype.
Definition scoped_datatype.hpp:60
ScopedDatatype & operator=(ScopedDatatype const &)=delete
Deleted copy assignment.
ScopedDatatype(MPI_Datatype type=MPI_DATATYPE_NULL)
Construct a new scoped MPI_Datatype and commit it. If no type is provided, defaults to MPI_DATATYPE_N...
Definition scoped_datatype.hpp:38