.. # split from OESystemFunctions.rst:412

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEBitVectorSub

.. oe:function:: OEBitVectorSub

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

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

   Returns the boolean difference of two
   :oe:cls:`OEBitVectors<OESystem::OEBitVector>`
   This function returns an :ref:`OEBitVector <OESystem_OEBitVector>` where each bit
   is set only if that position is set in the first operand and clear
   in the second.
   The result will have the same number of bits as the larger of the two arguments.

   .. oe:language:: c++

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


