Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Struct template bitwise_or

boost::mpi::bitwise_or — Compute the bitwise OR of two integral values.


// In header: <boost/mpi/operations.hpp>

template<typename T> 
struct bitwise_or {

  // public member functions
  T operator()(const T &, const T &) const;


This binary function object computes the bitwise OR of the two values it is given. When used with MPI and a type T that has an associated, built-in MPI data type, translates to MPI_BOR.

bitwise_or public member functions

  1. T operator()(const T & x, const T & y) const;


    the x | y.