ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::MPICodec< Msg > Struct Template Reference

the customization point of the messages that are not trivially copyable for MPIMailbox: a specialization MPICodec< Msg > has static void encode( const Msg & x , std::vector< std::byte > & out ), which appends the bytes of \( x \) to out, and static Msg decode( std::span< const std::byte > b ), which rebuilds the message from exactly the bytes that encode() appended; ADS gives those of std::string and of std::vector< T > for a trivially copyable \( T \) More...

Detailed description

template<class Msg>
struct ADS::MPICodec< Msg >

the customization point of the messages that are not trivially copyable for MPIMailbox: a specialization MPICodec< Msg > has static void encode( const Msg & x , std::vector< std::byte > & out ), which appends the bytes of \( x \) to out, and static Msg decode( std::span< const std::byte > b ), which rebuilds the message from exactly the bytes that encode() appended; ADS gives those of std::string and of std::vector< T > for a trivially copyable \( T \)


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