KaMPIng 0.2.1
(Near) zero-overhead MPI wrapper for C++
Loading...
Searching...
No Matches
kamping::types::kabool Class Reference

Wrapper around bool to allow handling containers of boolean values. More...

#include <kabool.hpp>

Public Member Functions

constexpr kabool () noexcept
 default constructor for a kabool with value false
 
constexpr kabool (bool value) noexcept
 constructor to construct a kabool out of a bool
 
constexpr operator bool () const noexcept
 implicit cast of kabool to bool
 

Detailed Description

Wrapper around bool to allow handling containers of boolean values.

std::vector<bool> uses bit-packing which is incompatible with MPI's buffer model. Use std::vector<kabool> instead: kabool maps to MPI_CXX_BOOL and stores one bool per byte.


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