Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template bitwise_xor

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

Synopsis

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

template<typename T> 
struct bitwise_xor : public std::binary_function< T, T, T > {

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

Description

This binary function object computes the bitwise exclusive 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_BXOR.

bitwise_xor public member functions

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

    Returns:

    x ^ y.


PrevUpHomeNext