.. # split from OESystemFunctions.rst:432

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEBitVectorXor

.. oe:function:: OEBitVectorXor

   .. oe:language:: c++ java csharp

      .. oe:api::

         OEBitVector OEBitVectorXor(const OEBitVector& a, const OEBitVector& b)

   .. oe:language:: python

      .. oe:api:: python

         OEBitVectorXor(a: OEBitVector, b: OEBitVector) -> OEBitVector

   Returns that Boolean exclusive or (or 'xor') of two
   :oe:cls:`OEBitVectors<OESystem::OEBitVector>`.
   This function returns an :ref:`OEBitVector <OESystem_OEBitVector>`
   where each bit is set only if the equivalent bit positions in the
   two operands have different values. The result will have the same
   number of bits as the large of the two arguments.

   .. oe:language:: c++

      This function is identical to
      the ``operator^`` operation of two
      :oe:cls:`OEBitVectors<OESystem::OEBitVector>`.

