KaMPIng 0.1.1
Flexible and (near) zero-overhead C++ bindings for MPI
Loading...
Searching...
No Matches
kamping::AllocNewUsingT< Container > Struct Template Reference

Buffer allocation tag used for indicating that a buffer should be allocated by KaMPIng. More...

#include <data_buffer.hpp>

Public Types

template<typename... Ts>
using container_type = Container<Ts...>
 The container type to allocate.
 

Detailed Description

template<template< typename... > typename Container>
struct kamping::AllocNewUsingT< Container >

Buffer allocation tag used for indicating that a buffer should be allocated by KaMPIng.

Template Parameters
ContainerA container template to use for allocation.

Passing this with an appropriate template parameter to a buffer creation function (such as recv_counts_out()) indicates, that the MPI operation should allocate an appropriately sized buffer of type Container<T> internally, where T is automatically determined.

In case of recv_counts_out(alloc_new_using<std::vector>) this means, that internally, a std::vector<int> is allocated.

Member Typedef Documentation

◆ container_type

template<template< typename... > typename Container>
template<typename... Ts>
using kamping::AllocNewUsingT< Container >::container_type = Container<Ts...>

The container type to allocate.

Template Parameters
TsThe template parameters for the container.

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