.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OESameAlternateLocation

..  _OEChem_OESameAlternateLocation:

.. oe:function:: OESameAlternateLocation

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

      .. oe:api::

         bool OESameAlternateLocation(const OEAtomBase& res1,
                                      const OEAtomBase& res2,
                                      const bool allowBlank = false)
         bool OESameAlternateLocation(const OEResidue& res1,
                                      const OEResidue& res2,
                                      const bool allowBlank = false)

   .. oe:language:: python

      .. oe:api:: python

         OESameAlternateLocation(atom1: OEAtomBase, atom2: OEAtomBase,
                                 allowBlank: bool = False) -> bool
         OESameAlternateLocation(res1: OEResidue, res2: OEResidue,
                                 allowBlank: bool = False) -> bool

   Determines whether two atoms or their respective
   :ref:`OEResidue <OEChem_OEResidue>` s represent the same
   alternate location.  This returns ``true`` when both residue have the same 
   alternate location, or when one has a designated alternate location and 
   the other has a blank (unspecified) alternate location. This does not enforce
   that the atoms to be in the same residue.
